Skip to content

Commit

Permalink
Avoid to raise KeyError exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemerle committed Jul 29, 2024
1 parent f32023e commit d1637dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/cloudnet/tosca/declarative_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ def generate_relationship_weave_operations(self, steps, relationship):
{'call_operation': interface_name + '.' + operation_name }
],
}
if(steps.get(step_name) is None):
# Should not happen but sometimes this happens!
# So skip following code
continue
on_success = steps[step_name].get("on_success")
if operator == "after":
if on_success is None:
Expand Down

0 comments on commit d1637dc

Please sign in to comment.