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

Fix handling some eatonpdu return values

This commit is contained in:
Jarrod Johnson 2024-05-15 12:30:13 -04:00
parent 172c57c6f1
commit c0bcc3791d

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]