|
|
@ -344,7 +344,7 @@ options:
|
|
|
|
datastore:
|
|
|
|
datastore:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specify datastore or datastore cluster to provision virtual machine.
|
|
|
|
- Specify datastore or datastore cluster to provision virtual machine.
|
|
|
|
- 'This will take precendence over "disk.datastore" parameter.'
|
|
|
|
- 'This will take precedence over "disk.datastore" parameter.'
|
|
|
|
- This parameter is useful to override datastore or datastore cluster setting.
|
|
|
|
- This parameter is useful to override datastore or datastore cluster setting.
|
|
|
|
- For example, when user has different datastore or datastore cluster for templates and virtual machines.
|
|
|
|
- For example, when user has different datastore or datastore cluster for templates and virtual machines.
|
|
|
|
- Please see example for more usage.
|
|
|
|
- Please see example for more usage.
|
|
|
@ -2120,7 +2120,7 @@ class PyVmomiHelper(PyVmomi):
|
|
|
|
|
|
|
|
|
|
|
|
# set the destination datastore for VM & disks
|
|
|
|
# set the destination datastore for VM & disks
|
|
|
|
if self.params['datastore']:
|
|
|
|
if self.params['datastore']:
|
|
|
|
# Give precendence to datastore value provided by user
|
|
|
|
# Give precedence to datastore value provided by user
|
|
|
|
# User may want to deploy VM to specific datastore.
|
|
|
|
# User may want to deploy VM to specific datastore.
|
|
|
|
datastore_name = self.params['datastore']
|
|
|
|
datastore_name = self.params['datastore']
|
|
|
|
# Check if user has provided datastore cluster first
|
|
|
|
# Check if user has provided datastore cluster first
|
|
|
|