Merge "When action plan is empty, its state is incorrect"
This commit is contained in:
@@ -94,6 +94,7 @@ class DefaultPlanner(base.BasePlanner):
|
|||||||
if len(scheduled) == 0:
|
if len(scheduled) == 0:
|
||||||
LOG.warning(_LW("The action plan is empty"))
|
LOG.warning(_LW("The action plan is empty"))
|
||||||
action_plan.first_action_id = None
|
action_plan.first_action_id = None
|
||||||
|
action_plan.state = objects.action_plan.State.SUCCEEDED
|
||||||
action_plan.save()
|
action_plan.save()
|
||||||
else:
|
else:
|
||||||
# create the first action
|
# create the first action
|
||||||
|
|||||||
Reference in New Issue
Block a user