Fix AttributeError exception

StartError is in exception, not Exception

Change-Id: Iff6ea38a2d0173173719f1cd840d9f3789fcf023
Closes-Bug: #1783924
This commit is contained in:
licanwei 2018-07-26 19:50:28 -07:00
parent 1272ca579e
commit abbb1317d3
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ class ActionPlansController(rest.RestController):
if action_plan_to_start['state'] != \
objects.action_plan.State.RECOMMENDED:
raise Exception.StartError(
raise exception.StartError(
state=action_plan_to_start.state)
action_plan_to_start['state'] = objects.action_plan.State.PENDING