Skip to content

Commit

Permalink
Backport fix in pipeline path in create_run_from_pipeline_func (relea…
Browse files Browse the repository at this point in the history
…ses/2.10.0) (#2048)

* Fix path in create_run_from_pipeline_func

Signed-off-by: Jorge Garcia Oncins <[email protected]>

* Fix linter issue

Signed-off-by: Jorge Garcia Oncins <[email protected]>

---------

Signed-off-by: Jorge Garcia Oncins <[email protected]>
  • Loading branch information
jgarciao authored Nov 19, 2024
1 parent 8cd0052 commit 0a42557
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ods_ci/libs/DataSciencePipelinesKfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def create_run_from_pipeline_func(
# the current_path will be ods-ci
if current_path is None:
current_path = os.getcwd()
my_source = self.import_souce_code(
f"{current_path}/ods_ci/tests/Resources/Files/pipeline-samples/v2/{source_code}"
)
my_source = self.import_souce_code(f"{current_path}/tests/Resources/Files/pipeline-samples/v2/{source_code}")
pipeline = getattr(my_source, fn)

# pipeline_params
Expand Down

0 comments on commit 0a42557

Please sign in to comment.