Skip to content
5 changes: 3 additions & 2 deletions agent360/plugins/cloudlinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ def run(self, config):
except Exception:
return "Could not load lveinfo data"

if data['success'] is not 1:
if data['success'] != 1:
return "Failed to load lveinfo"

results = {}

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

Expand Down
Loading