mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-19 08:51:25 -07:00
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:
parent
cf147b9fca
commit
e39320c354
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue