Skip to content

Commit

Permalink
Using eval to execute
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Lee committed Aug 16, 2019
1 parent c453e21 commit b3221be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/kubeflow/testing/run_e2e_workflow.py
Expand Up @@ -297,10 +297,10 @@ def run(args, file_handler): # pylint: disable=too-many-statements,too-many-bran
ui_urls[workflow_name] = ui_url
logging.info("URL for workflow: %s", ui_url)
else:
wf_result = util.run("python", w.py_func)
group, version = wf_result['apiVersion'].split('/')
wf_result = eval(w.py_func)
group, version = wf_result()['apiVersion'].split('/')
k8s_co = k8s_client.CustomObjectsApi()
k8s_co.create_namespaced_custom_object(group=group, version=version, namespace=get_namespace(args), plural='workflows', body=wf_result)
k8s_co.create_namespaced_custom_object(group=group, version=version, namespace=get_namespace(args), plural='workflows', body=wf_result())

# We delay creating started.json until we know the Argo workflow URLs
create_started_file(args.bucket, ui_urls)
Expand Down

0 comments on commit b3221be

Please sign in to comment.