diff --git a/check_s3_bucket/__init__.py b/check_s3_bucket/__init__.py index ed5ee66491604f6b5e9f5a82b78b49372593e4b5..244f2a66d8d9b0b7d66a6d079548994761c72063 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"]