Can't create multiple rbac policies for same object_id but different target_project_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ansible-collections-openstack |
New
|
Undecided
|
Unassigned |
Bug Description
The code checks only whether there already is a policy with the same object_id but it should also take the target_project_id into consideration.
I think, something like this should be ok:
--- .ansible/
+++ .ansible/
@@ -274,8 +274,8 @@
policies = self.conn.
return [p for p in policies
- if any(p[k] == self.params[k]
- for k in ['object_id'])]
+ if all(p[k] == self.params[k]
+ for k in ['object_id', 'target_
def _update(self, policy, update):
attributes = update.
description: | updated |
summary: |
- Can't create multiple rbac policies with ansible for same object_id but - different target_project_id + Can't create multiple rbac policies for same object_id but different + target_project_id |
I believe you intended to report that to ansible- collections- openstack SIG, as OpenStack-Ansible is a project for deploying OpenStack with Ansible.