From 2c3463b4c9479540a7b838f8b1a11bb1097474a4 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 26 Jun 2019 19:47:43 +0300
Subject: [PATCH] fixup! Fix typo.

---
 check_s3_bucket/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_s3_bucket/__init__.py b/check_s3_bucket/__init__.py
index 93a928e..3448e78 100755
--- a/check_s3_bucket/__init__.py
+++ b/check_s3_bucket/__init__.py
@@ -100,7 +100,7 @@ def main():
         exit(2)
 
     # Calculate the age of the latest file and if it's in the thresholds set.
-    if files[0]["HoursSinceLastModified"] > NOW:
+    if files[0]["LastModified"] > NOW:
         print("Latest file is from the future, something is wrong.")
         exit(3)
     timedelta = files[0]["HoursSinceLastModified"]
-- 
GitLab