Skip to content

Commit

Permalink
Use action_obj.data['status']
Browse files Browse the repository at this point in the history
  • Loading branch information
freyes committed Oct 5, 2023
1 parent 3b93d1d commit 7a5dba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zaza/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ async def async_run_action(unit_name, action_name, model_name=None,
action_obj = await unit.run_action(action_name, **action_params)
await action_obj.wait()
action_obj = _normalise_action_object(action_obj)
if raise_on_failure and action_obj.status != 'completed':
if raise_on_failure and action_obj.data['status'] != 'completed':
try:
output = await model.get_action_output(action_obj.id)
except KeyError:
Expand Down Expand Up @@ -1171,7 +1171,7 @@ async def async_run_action_on_leader(application_name, action_name,
**action_params)
await action_obj.wait()
action_obj = _normalise_action_object(action_obj)
if raise_on_failure and action_obj.status != 'completed':
if raise_on_failure and action_obj.data['status'] != 'completed':
try:
output = await model.get_action_output(action_obj.id)
except KeyError:
Expand Down

0 comments on commit 7a5dba6

Please sign in to comment.