Commit 858e2cc0 authored by Matthieu Lamalle's avatar Matthieu Lamalle

correction on result job if not success

parent 39d88881
...@@ -222,9 +222,10 @@ class ServerRunner(ZephirCommonController): ...@@ -222,9 +222,10 @@ class ServerRunner(ZephirCommonController):
else: else:
dico['command'] = result['arg'] dico['command'] = result['arg']
if dico['executed']: if dico['executed']:
dico['success'] = result['success'] if 'success' in result :
dico['retcode'] = result['retcode'] dico['success'] = result['success']
dico['return'] = result['return'] dico['retcode'] = result['retcode']
dico['return'] = result['return']
return dico return dico
@register_wamp('v1.server.exec.list', notification_uri=None, database=True) @register_wamp('v1.server.exec.list', notification_uri=None, database=True)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment