Commit 213357d5 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Fix pylint warnings

parent 3d6139d2
Pipeline #3891 passed with stages
in 6 minutes and 57 seconds
...@@ -46,7 +46,6 @@ class AjaxEndpointWeb(ZoeRequestHandler): ...@@ -46,7 +46,6 @@ class AjaxEndpointWeb(ZoeRequestHandler):
execution = self.api_endpoint.execution_list(uid, role, name='aml-lab') execution = self.api_endpoint.execution_list(uid, role, name='aml-lab')
if len(execution) == 0: if len(execution) == 0:
exec_id = self.api_endpoint.execution_start(uid, role, 'aml-lab', app_descr) exec_id = self.api_endpoint.execution_start(uid, role, 'aml-lab', app_descr)
pass
else: else:
execution = execution[0] execution = execution[0]
exec_id = execution.id exec_id = execution.id
......
...@@ -159,8 +159,8 @@ def exec_get_cmd(args): ...@@ -159,8 +159,8 @@ def exec_get_cmd(args):
print('Exposed endpoints:') print('Exposed endpoints:')
else: else:
print('This ZApp does not expose any endpoint') print('This ZApp does not expose any endpoint')
for ep in endpoints: for endpoint in endpoints:
print(' - {}: {}'.format(ep[0], ep[1])) print(' - {}: {}'.format(endpoint[0], endpoint[1]))
print() print()
for c_id in execution['services']: for c_id in execution['services']:
......
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