Skip to content

Commit

Permalink
SDK - Lightweight - Fixed regression for components without outputs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Aug 6, 2019
1 parent 4fb329e commit dd59bc2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sdk/python/kfp/components/_python_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,9 @@ def _func_to_component_spec(func, extra_code='', base_image=_default_base_image,
'_parsed_args = vars(_parser.parse_args())',
])

if component_spec.outputs:
arg_parse_code_lines.extend([
'_output_files = _parsed_args.pop("_output_paths")',
])
arg_parse_code_lines.extend([
'_output_files = _parsed_args.pop("_output_paths", [])',
])

full_source = \
'''\
Expand Down

0 comments on commit dd59bc2

Please sign in to comment.