Action Plan state - Changed STARTING to TRIGGERED

As the STARTING state was not clear on its meaning, I renamed it
to TRIGGERED.

Change-Id: I99cceeb57f3d7d42c1543b21fad88a6872bc4e55
Closes-Bug: #1533245
This commit is contained in:
Vincent Françoise
2016-01-19 16:06:26 +01:00
parent b53da21b9b
commit 4dfe6a3fa8
5 changed files with 10 additions and 8 deletions

View File

@@ -386,7 +386,8 @@ class ActionPlansController(rest.RestController):
if action_plan_to_update[field] != patch_val:
action_plan_to_update[field] = patch_val
if field == 'state' and patch_val == 'STARTING':
if (field == 'state'
and patch_val == objects.action_plan.State.TRIGGERED):
launch_action_plan = True
action_plan_to_update.save()