1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-21 17:29:59 -05:00

Update configuration inputs

Update the configuration inputs to point to the “VM” designated values.

Signed-off-by: Kyle Ruddy <kmruddy@gmail.com>
This commit is contained in:
Kyle Ruddy 2017-04-03 14:22:32 -04:00
parent 91c837eb69
commit bd1eaf1ed1
4 changed files with 8 additions and 12 deletions

View File

@ -42,7 +42,6 @@ Sample Prerequisites:
- datacenter
- vm folder
- datastore
- cluster
- standard switch network
"""
@ -70,9 +69,9 @@ def setup(context=None):
def run():
# Get a placement spec
datacenter_name = testbed.config['DATACENTER2_NAME']
datacenter_name = testbed.config['VM_DATACENTER_NAME']
vm_folder_name = testbed.config['VM_FOLDER2_NAME']
datastore_name = testbed.config['NFS_DATASTORE_NAME']
datastore_name = testbed.config['VM_DATASTORE_NAME']
std_portgroup_name = testbed.config['STDPORTGROUP_NAME']
placement_spec = vm_placement_helper.get_placement_spec_for_resource_pool(
stub_config,

View File

@ -36,8 +36,6 @@ Sample Prerequisites:
- datacenter
- vm folder
- datastore
- cluster
- standard switch network
"""
stub_config = None
@ -64,9 +62,9 @@ def setup(context=None):
def run():
# Get a placement spec
datacenter_name = testbed.config['DATACENTER2_NAME']
datacenter_name = testbed.config['VM_DATACENTER_NAME']
vm_folder_name = testbed.config['VM_FOLDER2_NAME']
datastore_name = testbed.config['NFS_DATASTORE_NAME']
datastore_name = testbed.config['VM_DATASTORE_NAME']
placement_spec = vm_placement_helper.get_placement_spec_for_resource_pool(
stub_config,
datacenter_name,

View File

@ -44,7 +44,6 @@ Sample Prerequisites:
- vm folder
- resource pool
- datastore
- cluster
- standard switch network
- distributed switch network
- An iso file on the datastore mentioned above
@ -74,9 +73,9 @@ def setup(context=None):
def run():
# Get a placement spec
datacenter_name = testbed.config['DATACENTER2_NAME']
datacenter_name = testbed.config['VM_DATACENTER_NAME']
vm_folder_name = testbed.config['VM_FOLDER2_NAME']
datastore_name = testbed.config['NFS_DATASTORE_NAME']
datastore_name = testbed.config['VM_DATASTORE_NAME']
std_portgroup_name = testbed.config['STDPORTGROUP_NAME']
dv_portgroup_name = testbed.config['VDPORTGROUP1_NAME']
placement_spec = vm_placement_helper.get_placement_spec_for_resource_pool(

View File

@ -95,8 +95,8 @@ def setup(context=None):
# Get the datacenter and datastore managed objects to be able to create and
# delete VMDKs, which are backings for a VM Disk.
datacenter_name = testbed.config['DATACENTER2_NAME']
datastore_name = testbed.config['NFS_DATASTORE_NAME']
datacenter_name = testbed.config['VM_DATACENTER_NAME']
datastore_name = testbed.config['VM_DATASTORE_NAME']
datastore_mo = get_datastore_mo(stub_config,
service_instance._stub,
datacenter_name,