mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Fix handling some eatonpdu return values
This commit is contained in:
parent
172c57c6f1
commit
c0bcc3791d
@ -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