mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Minor touch ups of vsphere_guest code.
This commit is contained in:
committed by
Matt Clay
parent
60d160a2e9
commit
a655241488
@@ -80,7 +80,7 @@ options:
|
||||
- Name of the source template to deploy from
|
||||
default: None
|
||||
snapshot_to_clone:
|
||||
version_added 2.0
|
||||
version_added "2.0"
|
||||
description:
|
||||
- String. When specified, snapshot_to_clone will create a linked clone copy of the VM, Snapshot must already be taken in vCenter.
|
||||
required: false
|
||||
@@ -613,7 +613,7 @@ def deploy_template(vsphere_client, guest, resource_pool, template_src, esxi, mo
|
||||
try:
|
||||
if vmTarget:
|
||||
changed = False
|
||||
elif snapshot_to_clone != None:
|
||||
elif snapshot_to_clone is not None:
|
||||
#check if snapshot_to_clone is specified, Create a Linked Clone instead of a full clone.
|
||||
vmTemplate.clone(guest, resourcepool=rpmor, linked=True, snapshot=snapshot_to_clone)
|
||||
changed = True
|
||||
|
||||
Reference in New Issue
Block a user