Update and rename main.py 17/9417/1
authorYouhwan Seol <yh.seol@samsung.com>
Thu, 27 Oct 2022 07:52:34 +0000 (16:52 +0900)
committerYouhwan Seol <yh.seol@samsung.com>
Thu, 27 Oct 2022 08:09:06 +0000 (17:09 +0900)
Issue-ID: AIMLFW-2

Signed-off-by: Youhwan Seol <yh.seol@samsung.com>
Change-Id: Iac50379b66edbdf8bd4c06c1355e291e8cfcebf8

kfadapter/kfadapter_main.py [moved from kfadapter/main.py with 98% similarity]

similarity index 98%
rename from kfadapter/main.py
rename to kfadapter/kfadapter_main.py
index 45be5b3..0340558 100644 (file)
@@ -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")