From 5a9f608451e128668bf86b166d6b6ba5990e2a5b Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 15 May 2024 12:30:13 -0400 Subject: [PATCH] Fix handling some eatonpdu return values --- .../confluent/plugins/hardwaremanagement/eatonpdu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/eatonpdu.py b/confluent_server/confluent/plugins/hardwaremanagement/eatonpdu.py index 16be5b38..4c3d4654 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/eatonpdu.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/eatonpdu.py @@ -33,7 +33,8 @@ def simplify_name(name): def sanitize_json(data): if not isinstance(data, str): data = data.decode('utf8') - return re.sub(r'([^ {:,]*):', r'"\1":', data).replace("'", '"') + return re.sub(r'([^ {:,]*):', r'"\1":', data).replace("'", '"').replace(',,', ',null,') + def answer_challenge(username, password, data): realm = data[0]