mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 23:39:09 -07:00
Succesful clone from proxmox_kvm should return new vm id, not id from cloned vm. (#3034)
* Clone sucess should return new vm id, not id from cloned vm. * add changelog fragment * Update changelogs/fragments/3034-promox-kvm-return-new-id.yaml Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Yvan E. Watchman <git@yvanwatchman.eu> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
c8b2d7c1e5
commit
ac03881002
2 changed files with 4 additions and 1 deletions
|
@ -1303,7 +1303,7 @@ def main():
|
|||
if update:
|
||||
module.exit_json(changed=True, vmid=vmid, msg="VM %s with vmid %s updated" % (name, vmid))
|
||||
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=newid, msg="VM %s with newid %s cloned from vm with vmid %s" % (name, newid, vmid))
|
||||
else:
|
||||
module.exit_json(changed=True, msg="VM %s with vmid %s deployed" % (name, vmid), **results)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue