Commit 42d8c8af authored by Daniele Venzano's avatar Daniele Venzano

Use execution IDs for retrieving the app description

parent ee7d9480
......@@ -44,12 +44,11 @@ def app_validate_cmd(args):
def app_get_cmd(args):
api_query = ZoeQueryAPI(utils.zoe_url(), utils.zoe_user(), utils.zoe_pass())
data = api_query.query('execution',
if len(data) == 0:
exec_api = ZoeExecutionsAPI(utils.zoe_url(), utils.zoe_user(), utils.zoe_pass())
execution = exec_api.execution_get(
if execution is None:
print("no such execution")
execution = data[0]
json.dump(execution['description'], sys.stdout, sort_keys=True, indent=4)
......@@ -135,7 +134,7 @@ def process_arguments() -> Namespace:
argparser_app_get = subparser.add_parser('exec-app-get', help="Retrieve an already defined application description")
argparser_app_get.add_argument('name', help='The name of the application')
argparser_app_get.add_argument('id', help='The ID of the application')
argparser_execution_kill = subparser.add_parser('terminate', help="Terminates an execution")
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