Skip to content

Commit

Permalink
Fix get_parameter for Step
Browse files Browse the repository at this point in the history
Needed to match fix in #565

Signed-off-by: Elliot Gunton <egunton@bloomberg.net>
  • Loading branch information
elliotgunton authored May 9, 2023
1 parent a1d704e commit 72d6ae8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hera/workflows/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,9 @@ def get_parameter(self, name: str) -> Parameter:

obj = next((output for output in parameters if output.name == name), None)
if obj is not None:
obj.value = f"{{{{steps.{self.name}.outputs.parameters.{name}}}}}"
return Parameter(
name=obj.name,
value=obj.value,
value_from=obj.value_from,
global_name=obj.global_name,
description=obj.description,
value=f"{{{{steps.{self.name}.outputs.parameters.{name}}}}}",
)
raise KeyError(f"No output parameter named `{name}` found")

Expand Down

0 comments on commit 72d6ae8

Please sign in to comment.