Skip to content

Commit

Permalink
fix artifact-type
Browse files Browse the repository at this point in the history
Signed-off-by: weiwee <wbwmat@gmail.com>
  • Loading branch information
sagewe committed Jun 28, 2023
1 parent cc7fad7 commit b75a76b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/fate/components/entrypoint/component_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ def artifact_type(name, role, stage, output_path):
cpn = load_component(name)
role = Role.from_str(role)
stage = Stage.from_str(stage)
if not stage.is_default:
for stage_component in cpn.stage_components:
if stage_component.name == stage.name:
cpn = stage_component
break
else:
raise ValueError(f"stage `{stage.name}` for component `{component.name}` not supported")

if output_path:
cpn.dump_runtime_io_yaml(role, stage, output_path)
Expand Down

0 comments on commit b75a76b

Please sign in to comment.