mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
proxmox_kvm: fix undefined local variable status (#1847)
* proxmox_kvm: undefined local variable status * proxmox_kvm: Add a changelog fragment * Update changelogs/fragments/1847-proxmox-kvm-fix-status.yml Co-authored-by: Felix Fontein <felix@fontein.de> * proxmox_kvm: fix the RETURN document * proxmox_kvm: fix name variable when state=current The variable name is not always defined as the module can be called with just a vmid. Before: > "msg": "VM None with vmid = 118 is stopped" After: > "msg": "VM test-instance with vmid = 118 is stopped" Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
2
changelogs/fragments/1847-proxmox-kvm-fix-status.yml
Normal file
2
changelogs/fragments/1847-proxmox-kvm-fix-status.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- proxmox_kvm - fix undefined local variable ``status`` when the parameter ``state`` is either ``stopped``, ``started``, ``restarted`` or ``absent`` (https://github.com/ansible-collections/community.general/pull/1847).
|
||||
Reference in New Issue
Block a user