Commit 99ded1d1 authored by gwenael remond's avatar gwenael remond

remove 'return' in v1.server.exec.list

parent 3d47672c
Pipeline #556 passed with stage
in 0 seconds
......@@ -292,7 +292,7 @@ class ServerRunner(ZephirCommonController):
'automation': automation,
'executed': False}
def result_to_dict(self, result, automation):
def result_to_dict(self, result, automation, with_returns=True):
dico = {'job_id': result['jid'],
'server_id': int(result['minion']),
'automation': automation,
......@@ -305,7 +305,8 @@ class ServerRunner(ZephirCommonController):
if 'success' in result :
dico['success'] = result['success']
dico['retcode'] = result['retcode']
dico['return'] = result['return']
if with_returns:
dico['return'] = result['return']
return dico
@register_wamp('v1.server.exec.list', notification_uri=None, database=True, profil_adapter='get_profil_for_server')
......@@ -318,7 +319,7 @@ class ServerRunner(ZephirCommonController):
raise Exception(_('Automation engine not supported: {}').format(automation))
ret = []
for result in results:
ret.append(self.result_to_dict(result, automation))
ret.append(self.result_to_dict(result, automation, with_returns=False))
return ret
@register_wamp('v1.server.exec.deploy', 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