mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-23 14:32:18 +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')
|
||||
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:
|
||||
print('Wrong or missing parameter. Usage : %s start|stop|restart|status|clean|send')
|
||||
|
|
Loading…
Reference in a new issue