Replace audit_filter by audit

Closes-bug: #1623535
Change-Id: Iaef93c7180e5a8d21eeee9d63a4e1419db85fcc4
This commit is contained in:
David TARDIVEL 2016-09-16 17:35:55 +02:00
parent a1b494f433
commit ba108ed37e

View File

@ -66,13 +66,13 @@ class GoToActionPlan(horizon.tables.Action):
policy_rules = (("infra-optim", "action_plan:detail"),)
def allowed(self, request, audit):
return audit or audit.state in ("SUCCEEEDED", )
return audit or audit.state in ("SUCCEEDED", )
def single(self, table, request, audit_id):
try:
action_plans = watcher.ActionPlan.list(
request,
audit_filter=audit_id)
audit=audit_id)
except Exception:
horizon.exceptions.handle(
request,