2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix handling some eatonpdu return values

This commit is contained in:
Jarrod Johnson 2024-05-15 12:30:13 -04:00
parent 100810788c
commit 5a9f608451

View File

@ -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]