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