You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When you are putting the if_else_condition_task type in the depends_on together with normal task, the outcome will be applied for all tasks and it will raise terraform error Error: cannot update job: The dependency on a non-if/else condition "not_condition_task" specifies an outcome "false". Outcomes can only be specified for if/else condition dependencies.
@propertydefdepends_on_names(self) ->Iterator[Dict[str, Optional[str]]]:
foriinself.depends_on:
# Here is the issue, the check for task type is requiredifself.if_else_outcome:
outcome=list(self.if_else_outcome.values())[0]
else:
outcome=Noneifcallable(i) andhasattr(i, "__name__"):
yield {i.__name__: outcome}
else:
yield {str(i): outcome}
Error: terraform apply: exit status 1
Error: cannot update job: The dependency on a non-if/else condition "not_condition_task" specifies an outcome "false". Outcomes can only be specified for if/else condition dependencies.
Expected behavior
Outcome should be applied correctly only for IF_ELSE_CONDITION tasks.
The text was updated successfully, but these errors were encountered:
Describe the bug
When you are putting the if_else_condition_task type in the depends_on together with normal task, the outcome will be applied for all tasks and it will raise terraform error
Error: cannot update job: The dependency on a non-if/else condition "not_condition_task" specifies an outcome "false". Outcomes can only be specified for if/else condition dependencies.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Outcome should be applied correctly only for IF_ELSE_CONDITION tasks.
The text was updated successfully, but these errors were encountered: