Merge "Pass the actual target in migrations policy"
This commit is contained in:
commit
39340b4122
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue