Parameter Validation Error when using get_parameter
with a parameter set using ValueFrom
#550
Labels
get_parameter
with a parameter set using ValueFrom
#550
Overview
Currently if you attempt to generate a workflow with the following snippet you will get a validation error, this is occuring on hera version 5.1.0. I believe this is occurring due to the way the get_parameter function returns a Parameter. It will copy over the existing
value_from
field and set thevalue
field for the task output. This leads to bothvalue_from
andvalue
being set on the new parameter causing the validation to fail. In my testing, removing thevalue_from=obj.value_from,
from the parameter being returned fixes the issue.Example Code
Error
The text was updated successfully, but these errors were encountered: