mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07: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:
parent
e0dd4b240f
commit
5135587c16
2 changed files with 25 additions and 13 deletions
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).
|
Loading…
Add table
Add a link
Reference in a new issue