mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-03 06:49:10 -07:00
* proxmox_kvm: trivial patch for Github issue #1875 * proxmox_kvm: add a changelog fragment * Update changelogs/fragments/1895-proxmox-kvm-fix-issue-1875.yml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
cf5e9bf44c
commit
bb7ce740fe
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/1895-proxmox-kvm-fix-issue-1875.yml
Normal file
3
changelogs/fragments/1895-proxmox-kvm-fix-issue-1875.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
bugfixes:
|
||||||
|
- proxmox_kvm - fix parameter ``vmid`` passed twice to ``exit_json`` while creating a virtual machine without cloning (https://github.com/ansible-collections/community.general/issues/1875, https://github.com/ansible-collections/community.general/pull/1895).
|
|
@ -1287,7 +1287,7 @@ def main():
|
||||||
elif clone is not None:
|
elif clone is not None:
|
||||||
module.exit_json(changed=True, vmid=vmid, msg="VM %s with newid %s cloned from vm with vmid %s" % (name, newid, vmid))
|
module.exit_json(changed=True, vmid=vmid, msg="VM %s with newid %s cloned from vm with vmid %s" % (name, newid, vmid))
|
||||||
else:
|
else:
|
||||||
module.exit_json(changed=True, vmid=vmid, msg="VM %s with vmid %s deployed" % (name, vmid), **results)
|
module.exit_json(changed=True, msg="VM %s with vmid %s deployed" % (name, vmid), **results)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if update:
|
if update:
|
||||||
module.fail_json(vmid=vmid, msg="Unable to update vm {0} with vmid {1}=".format(name, vmid) + str(e))
|
module.fail_json(vmid=vmid, msg="Unable to update vm {0} with vmid {1}=".format(name, vmid) + str(e))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue