From c0bcc3791d0071c565d8b480d10b3e51b0261c5a 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]