mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-24 19:33:50 +01:00
Merge pull request #66 from drewkerrigan/array-bug
Fix conditional check on empty data.
This commit is contained in:
commit
2821a1ae66
@ -152,7 +152,7 @@ class JsonHelper:
|
||||
(Element.Key.NestedKey). Returns (None, 'not_found') if not found
|
||||
"""
|
||||
|
||||
if temp_data:
|
||||
if temp_data != '':
|
||||
data = temp_data
|
||||
else:
|
||||
data = self.data
|
||||
|
Loading…
Reference in New Issue
Block a user