Skip to content

Commit

Permalink
fix(cli): handle when pipeline.paramters is None (#5725)
Browse files Browse the repository at this point in the history
Signed-off-by: ByungchanKim <[email protected]>
  • Loading branch information
kbc8894 authored May 30, 2021
1 parent 4e5d724 commit 4212110
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/python/kfp/cli/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def _display_pipeline(pipeline, output_format):

# Pipeline parameter details
headers = ["Parameter Name", "Default Value"]
data = [[param.name, param.value] for param in pipeline.parameters]
data = []
if pipeline.parameters is not None:
data = [[param.name, param.value] for param in pipeline.parameters]

if output_format == OutputFormat.table.name:
print_output([], ["Pipeline Details"], output_format)
Expand Down

0 comments on commit 4212110

Please sign in to comment.