Skip to content

Commit

Permalink
SDK: Fix wrong indentation in extract_pipelineparams_from_any() (#1076)
Browse files Browse the repository at this point in the history
Remove a level of indentation from `return` statement in dict case which
resulted in checking only the first value

Signed-off-by: Ilias Katsakioris <elikatsis@arrikto.com>
  • Loading branch information
elikatsis authored and k8s-ci-robot committed Apr 1, 2019
1 parent c5a727a commit 3a10425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/kfp/dsl/_pipeline_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def extract_pipelineparams_from_any(payload) -> List['PipelineParam']:
pipeline_params = []
for item in payload.values():
pipeline_params += extract_pipelineparams_from_any(item)
return list(set(pipeline_params))
return list(set(pipeline_params))

# k8s object
if hasattr(payload, 'swagger_types') and isinstance(payload.swagger_types, dict):
Expand Down

0 comments on commit 3a10425

Please sign in to comment.