Merge "Remove redundan lines."

This commit is contained in:
Jenkins
2016-11-23 08:58:49 +00:00
committed by Gerrit Code Review
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 action_plan_uuid: UUID of a action plan.
:param patch: a json PATCH document to apply to this action plan. :param patch: a json PATCH document to apply to this action plan.
""" """
launch_action_plan = True
if self.from_actionsPlans: if self.from_actionsPlans:
raise exception.OperationNotPermitted raise exception.OperationNotPermitted

View File

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