1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-22 09:39:58 -05:00

add vc password parameter

This commit is contained in:
Tianhao He 2017-08-17 00:27:34 -07:00
parent ade24a262f
commit be279fb622
2 changed files with 7 additions and 0 deletions

View File

@ -45,6 +45,8 @@ _testbed = testbed.get()
# then override testbed.py values # then override testbed.py values
if (args.vcenterserver): if (args.vcenterserver):
_testbed.config['SERVER'] = args.vcenterserver _testbed.config['SERVER'] = args.vcenterserver
if (args.vcpassword):
_testbed.config['PASSWORD'] = args.vcpassword
if (args.esxhost1): if (args.esxhost1):
_testbed.config['ESX_HOST1'] = args.esxhost1 _testbed.config['ESX_HOST1'] = args.esxhost1
if (args.esxhost2): if (args.esxhost2):

View File

@ -91,6 +91,11 @@ def build_arg_parser():
help='Vcenter server IP to prepare the testbed to run the samples.' help='Vcenter server IP to prepare the testbed to run the samples.'
'If not passed as argument, update testbed.py file') 'If not passed as argument, update testbed.py file')
parser.add_argument('-p', '--vcenterpassword',
action='store',
help='Vcenter server password'
'If not passed as argument, update testbed.py file')
parser.add_argument('-e1', '--esxhost1', parser.add_argument('-e1', '--esxhost1',
action='store', action='store',
help='ESX HOST 1 IP to prepare the testbed to run the samples.' help='ESX HOST 1 IP to prepare the testbed to run the samples.'