Browse Source

Merge "Fix error that cannot overwrite policy rule for 'forced_host'"

tags/22.0.0.0rc1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
cf26d18631
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      nova/api/openstack/compute/servers.py

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

@@ -666,7 +666,8 @@ class ServersController(wsgi.Controller):
except exception.InvalidInput as err:
raise exc.HTTPBadRequest(explanation=six.text_type(err))
if host or node:
context.can(server_policies.SERVERS % 'create:forced_host', {})
context.can(server_policies.SERVERS % 'create:forced_host',
target=target)

if api_version_request.is_supported(req, min_version='2.74'):
self._process_hosts_for_create(context, target, server_dict,


Loading…
Cancel
Save