Renamed Status to State
As we can see in the codebase, we have 3 "Status" enums which are located at: - watcher/objects/action.py - watcher/objects/action_plan.py - watcher/objects/audit.py So I renamed them from "Status" to "State" to be consistent with the DB schema. Change-Id: If3d180c9daba6ae9083775ad6813aa4c21763dbf Closes-Bug: #1522733
This commit is contained in:
@@ -47,7 +47,7 @@ class DefaultPlanner(base.BasePlanner):
|
||||
'action_type': action_type,
|
||||
'applies_to': applies_to,
|
||||
'input_parameters': input_parameters,
|
||||
'state': objects.action.Status.PENDING,
|
||||
'state': objects.action.State.PENDING,
|
||||
'alarm': None,
|
||||
'next': None,
|
||||
}
|
||||
@@ -99,7 +99,7 @@ class DefaultPlanner(base.BasePlanner):
|
||||
'uuid': utils.generate_uuid(),
|
||||
'audit_id': audit_id,
|
||||
'first_action_id': None,
|
||||
'state': objects.action_plan.Status.RECOMMENDED
|
||||
'state': objects.action_plan.State.RECOMMENDED
|
||||
}
|
||||
|
||||
new_action_plan = objects.ActionPlan(context, **action_plan_dict)
|
||||
|
||||
Reference in New Issue
Block a user