Merge "set eager=True for actionplan.list"

This commit is contained in:
Jenkins 2017-03-21 10:19:41 +00:00 committed by Gerrit Code Review
commit eb038e4af0

View File

@ -72,7 +72,7 @@ class ContinuousAuditHandler(base.AuditHandler):
a_plan_filters = {'audit_uuid': audit.uuid,
'state': objects.action_plan.State.RECOMMENDED}
action_plans = objects.ActionPlan.list(
request_context, filters=a_plan_filters)
request_context, filters=a_plan_filters, eager=True)
for plan in action_plans:
plan.state = objects.action_plan.State.CANCELLED
plan.save()