better handeling of return value validation by datatype
This commit is contained in:
parent
8a700bf83d
commit
931f1f9e62
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue