mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 00:16:49 +00:00
proxmox_vm_info: don't expect key 'template' exists in dictionary (#9910)
* don't expect key 'template' exists * add changelog fragment * Update changelogs/fragments/9875-proxmox-dont-expect-key-template-to-exist.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -200,7 +200,7 @@ class ProxmoxVmInfoAnsible(ProxmoxAnsible):
|
||||
if desired_vm:
|
||||
desired_vm.update(detected_vm)
|
||||
desired_vm["vmid"] = this_vm_id
|
||||
desired_vm["template"] = proxmox_to_ansible_bool(desired_vm["template"])
|
||||
desired_vm["template"] = proxmox_to_ansible_bool(desired_vm.get("template", 0))
|
||||
# When user wants to retrieve the VM configuration
|
||||
if config != "none":
|
||||
# pending = 0, current = 1
|
||||
|
||||
Reference in New Issue
Block a user