From: Youhwan Seol Date: Thu, 27 Oct 2022 07:52:34 +0000 (+0900) Subject: Update and rename main.py X-Git-Tag: 1.0.0~14 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b341de08246911b7e89359f4854e7268e82faa25;p=aiml-fw%2Fathp%2Ftps%2Fkubeflow-adapter.git Update and rename main.py Issue-ID: AIMLFW-2 Signed-off-by: Youhwan Seol Change-Id: Iac50379b66edbdf8bd4c06c1355e291e8cfcebf8 --- diff --git a/kfadapter/main.py b/kfadapter/kfadapter_main.py similarity index 98% rename from kfadapter/main.py rename to kfadapter/kfadapter_main.py index 45be5b3..0340558 100644 --- a/kfadapter/main.py +++ b/kfadapter/kfadapter_main.py @@ -171,7 +171,7 @@ def get_versions_for_pipeline(pipeline_name): Returns: json dict: - it contains versons list for given pipeline name + it contains versions list for given pipeline name status: HTTP status 200 @@ -501,9 +501,9 @@ def kf_run(run_id): {'ext': 1}) run_info = KFCONNECT_KF_OBJ.get_kf_run(run_id) - run_dict['run_id'] = run_info.run.id - run_dict['run_name'] = run_info.run.name - run_dict['run_status'] = run_info.run.status + run_dict['run_id'] = run_info.id + run_dict['run_name'] = run_info.name + run_dict['run_status'] = run_info.status LOGGER.debug(run_dict) except Exception as err: LOGGER.error("Exception from KubeFlow in run")