proxmox: fix status getter (#9809)

* proxmox: fix status getter

get_lxc_status was missing a selection of the 'status' key

* proxmox: add changelog fragment

* proxmox: fix changelog fragment
This commit is contained in:
JL Euler 2025-02-28 23:12:05 +01:00 committed by GitHub
parent cf147b9fca
commit e39320c354
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1655,7 +1655,7 @@ class ProxmoxLxcAnsible(ProxmoxAnsible):
proxmox_node = self.proxmox_api.nodes(node_name)
except Exception as e:
self.module.fail_json(msg="Unable to retrieve node information: %s" % e)
return getattr(proxmox_node, self.VZ_TYPE)(vmid).status.current.get()
return getattr(proxmox_node, self.VZ_TYPE)(vmid).status.current.get()['status']
def format_vm_identifier(self, vmid, hostname):
if vmid and hostname: