Fix incorrect key lookup (#9223)
* Fix incorrect key lookup * Create changelog fragmentpull/9241/head
parent
e5761bd7c7
commit
6f87bf2bad
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- proxmox_backup - fix incorrect key lookup in vmid permission check (https://github.com/ansible-collections/community.general/pull/9223).
|
|
@ -325,7 +325,7 @@ class ProxmoxBackupAnsible(ProxmoxAnsible):
|
|||
if "/" in permissions.keys() and permissions["/"].get(
|
||||
"VM.Backup", 0) == 1:
|
||||
sufficient_permissions = True
|
||||
elif "/vms" in permissions.keys() and permissions["/"].get(
|
||||
elif "/vms" in permissions.keys() and permissions["/vms"].get(
|
||||
"VM.Backup", 0) == 1:
|
||||
sufficient_permissions = True
|
||||
elif pool and "/pool/" + pool in permissions.keys() and permissions["/pool/" + pool].get(
|
||||
|
|
Loading…
Reference in New Issue