Commit 0079f319 authored by Philippe Caseiro's avatar Philippe Caseiro

TRY 01

parent 9622b48c
Pipeline #486 passed with stage
in 0 seconds
......@@ -74,7 +74,9 @@ class SaltRunner(ZephirCommonController):
@register_wamp('v1.execution.salt.job.list', notification_uri=None, database=True)
async def list_jobs(self, cursor, minion_pattern):
try:
return list(self.jobs.list_jobs(cursor, minion_pattern))
ret = list(self.jobs.list_jobs(cursor, minion_pattern))
print(ret)
return ret
except SaltJobsErrorDbConnectionError as err:
raise ApplicationError('execution.salt.job.error.db-connection', reason=str(err))
......
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