Fix incorrect key lookup (#9223)

* Fix incorrect key lookup

* Create changelog fragment
pull/9241/head
IamLunchbox 2024-12-09 19:25:13 +01:00 committed by GitHub
parent e5761bd7c7
commit 6f87bf2bad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
bugfixes:
- proxmox_backup - fix incorrect key lookup in vmid permission check (https://github.com/ansible-collections/community.general/pull/9223).

View File

@ -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(