From dcec7ce257f56674f584c8fae4a66a452ef67242 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 26 Jun 2019 19:40:58 +0300
Subject: [PATCH] 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 ed5ee66..244f2a6 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][""] > NOW:
+    if files[0]["HoursSinceLastModified"] > NOW:
         print("Latest file is from the future, something is wrong.")
         exit(3)
     timedelta = files[0]["HoursSinceLastModified"]
-- 
GitLab