We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e771303 commit 27554e5Copy full SHA for 27554e5
splunklib/client.py
@@ -201,7 +201,7 @@ def _load_atom_entries(response):
201
r = _load_atom(response)
202
if 'feed' in r:
203
# Need this to handle a random case in the REST API
204
- if r.feed.get('totalResults') == 0:
+ if r.feed.get('totalResults') in [0, '0']:
205
return []
206
entries = r.feed.get('entry', None)
207
if entries is None: return None
0 commit comments