mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-27 05:43:09 +00:00
Fix incorrect key lookup (#9223)
* Fix incorrect key lookup * Create changelog fragment
This commit is contained in:
2
changelogs/fragments/9223-proxmox-backup-bugfixes.yml
Normal file
2
changelogs/fragments/9223-proxmox-backup-bugfixes.yml
Normal 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).
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user