mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-25 20:32:20 +03:00
Temporary change. Json format fixing
This commit is contained in:
parent
8859c981eb
commit
4d78384cb5
1 changed files with 5 additions and 1 deletions
|
@ -127,7 +127,11 @@ class Commander(object):
|
||||||
print('Wrong or missing parameter. Usage: send -p <policy_version> -c <command_execution_id> -m|-f <message_content>|<file_path> -e|-s|-w')
|
print('Wrong or missing parameter. Usage: send -p <policy_version> -c <command_execution_id> -m|-f <message_content>|<file_path> -e|-s|-w')
|
||||||
return None
|
return None
|
||||||
|
|
||||||
data['message'] = ast.literal_eval(str(response))
|
resp = str(response).replace("\"{", "{")
|
||||||
|
resp = resp.replace("}\"", "}")
|
||||||
|
resp = resp.replace("'", "\"")
|
||||||
|
data['message'] = json.loads(resp)
|
||||||
|
# data['message'] = ast.literal_eval(str(response))
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print('Wrong or missing parameter. Usage : %s start|stop|restart|status|clean|send')
|
print('Wrong or missing parameter. Usage : %s start|stop|restart|status|clean|send')
|
||||||
|
|
Loading…
Reference in a new issue