mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2025-05-10 01:43:45 +02:00
fix: whitespaces
This commit is contained in:
parent
b3907a63c8
commit
4d3b5e7242
@ -334,7 +334,7 @@ class JsonRuleProcessor:
|
||||
key, alias = _getKeyAlias(k)
|
||||
failure += self.checkThreshold(key, alias, r)
|
||||
return failure
|
||||
|
||||
|
||||
def checkTimestamp(self, key, alias, r):
|
||||
failure = ''
|
||||
invert = False
|
||||
@ -368,7 +368,7 @@ class JsonRuleProcessor:
|
||||
except:
|
||||
return " Value (%s) for key %s is not a Date in ISO format." % \
|
||||
(self.helper.get(key), alias)
|
||||
|
||||
|
||||
now = datetime.now(timezone.utc)
|
||||
age = now - timestamp
|
||||
|
||||
@ -732,4 +732,4 @@ if __name__ == "__main__":
|
||||
# Program entry point
|
||||
main(sys.argv[1:])
|
||||
|
||||
#EOF
|
||||
#EOF
|
||||
|
Loading…
Reference in New Issue
Block a user