mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-11-24 09:53:37 +00:00
Merge "Fix: Include target_project_id in RBAC creation"
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- Include target_project_id in RBAC creation
|
||||||
@@ -252,7 +252,7 @@ class NeutronRBACPolicy(OpenStackModule):
|
|||||||
|
|
||||||
matches = self._find_matches()
|
matches = self._find_matches()
|
||||||
if len(matches) > 1:
|
if len(matches) > 1:
|
||||||
self.fail_json(msg='Found more a single matching RBAC policy'
|
self.fail_json(msg='Found more than a single matching RBAC policy'
|
||||||
' which match the given parameters.')
|
' which match the given parameters.')
|
||||||
elif len(matches) == 1:
|
elif len(matches) == 1:
|
||||||
return matches[0]
|
return matches[0]
|
||||||
@@ -269,7 +269,8 @@ class NeutronRBACPolicy(OpenStackModule):
|
|||||||
.format(', '.join(missing_keys)))
|
.format(', '.join(missing_keys)))
|
||||||
|
|
||||||
kwargs = dict((k, self.params[k])
|
kwargs = dict((k, self.params[k])
|
||||||
for k in ['action', 'object_type', 'project_id'])
|
for k in ['action', 'object_type', 'project_id',
|
||||||
|
'target_project_id'])
|
||||||
|
|
||||||
policies = self.conn.network.rbac_policies(**kwargs)
|
policies = self.conn.network.rbac_policies(**kwargs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user