Remove redundan lines.

Change-Id: Iac10aea306e59eb91b192ec6e89f42851d9548a5
This commit is contained in:
zte-hanrong
2016-11-21 17:01:40 +08:00
parent 3ebe8ab70f
commit b80229f3d0
2 changed files with 0 additions and 2 deletions

View File

@@ -496,7 +496,6 @@ class ActionPlansController(rest.RestController):
:param action_plan_uuid: UUID of a action plan.
:param patch: a json PATCH document to apply to this action plan.
"""
launch_action_plan = True
if self.from_actionsPlans:
raise exception.OperationNotPermitted

View File

@@ -525,7 +525,6 @@ class AuditsController(rest.RestController):
pecan.response.location = link.build_url('audits', new_audit.uuid)
# trigger decision-engine to run the audit
if new_audit.audit_type == objects.audit.AuditType.ONESHOT.value:
dc_client = rpcapi.DecisionEngineAPI()
dc_client.trigger_audit(context, new_audit.uuid)