better handeling of return value validation by datatype

This commit is contained in:
simon 2021-08-21 17:14:11 +07:00
parent 8a700bf83d
commit 931f1f9e62
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class IngestLine:
""" validate the json data recieved from monitor """
for value in self.input_json.values():
if not value:
if isinstance(value, bool):
return 'reboot'
return 'ingest'