Merge "Pass the actual target in migrations policy"

This commit is contained in:
Zuul 2020-04-03 03:52:49 +00:00 committed by Gerrit Code Review
commit 39340b4122
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class MigrationsController(wsgi.Controller):
sort_dirs=None, sort_keys=None, limit=None, marker=None,
allow_changes_since=False, allow_changes_before=False):
context = req.environ['nova.context']
context.can(migrations_policies.POLICY_ROOT % 'index')
context.can(migrations_policies.POLICY_ROOT % 'index', target={})
search_opts = {}
search_opts.update(req.GET)
if 'changes-since' in search_opts: