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:
parent
100810788c
commit
5a9f608451
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user