proxmox_kvm: get_vmid fails altogether if any node is offline #46633
Labels
affects_2.7
This issue/PR affects Ansible v2.7
bot_closed
bug
This issue/PR relates to a bug.
cloud
collection:community.general
collection
Related to Ansible Collections work
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
python3
support:community
This issue/PR relates to code supported by the Ansible community.
virt
Virt community (incl. QEMU, KVM, libvirt, ovirt, RHV and Proxmox)
SUMMARY
If a node is offline,
proxmoxer
returns a dict describing a VM without a name attribute, like so::This causes
get_vmid()
to fail since there's noname
key in this dict. Worse, this error is hidden and reported as "no such VM in cluster" for any and all VMs, no matter whether they're online or not.ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
The text was updated successfully, but these errors were encountered: