diff --git a/agent360/plugins/cloudlinux.py b/agent360/plugins/cloudlinux.py index f0b36d4..cd386e3 100644 --- a/agent360/plugins/cloudlinux.py +++ b/agent360/plugins/cloudlinux.py @@ -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