Browse Source

Merge "Pass the actual target in os-console-auth-tokens policy"

tags/21.0.0.0rc1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
b2a2ae1b91
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nova/api/openstack/compute/console_auth_tokens.py

+ 1
- 1
nova/api/openstack/compute/console_auth_tokens.py View File

@@ -30,7 +30,7 @@ class ConsoleAuthTokensController(wsgi.Controller):
def _show(self, req, id, rdp_only):
"""Checks a console auth token and returns the related connect info."""
context = req.environ['nova.context']
context.can(cat_policies.BASE_POLICY_NAME)
context.can(cat_policies.BASE_POLICY_NAME, target={})

token = id
if not token:


Loading…
Cancel
Save