Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions agent360/plugins/cloudlinux-dbgov.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def run(self, config):
except Exception:
return "Could not load lveinfo dbgov data"

if data['success'] is not 1:
if data.get('success') != 1:
return "Failed to load lveinfo dbgov"

results = {}

for line in data['data']:
username = line['USER']
del line['USER']
# USER may be an int (UID without a username), keys must be uniform
username = str(line.pop('USER'))
results[username] = line

return results
Expand Down
Loading