mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-25 02:39:59 -05:00
add vc password parameter
This commit is contained in:
parent
ade24a262f
commit
be279fb622
@ -45,6 +45,8 @@ _testbed = testbed.get()
|
||||
# then override testbed.py values
|
||||
if (args.vcenterserver):
|
||||
_testbed.config['SERVER'] = args.vcenterserver
|
||||
if (args.vcpassword):
|
||||
_testbed.config['PASSWORD'] = args.vcpassword
|
||||
if (args.esxhost1):
|
||||
_testbed.config['ESX_HOST1'] = args.esxhost1
|
||||
if (args.esxhost2):
|
||||
|
@ -91,6 +91,11 @@ def build_arg_parser():
|
||||
help='Vcenter server IP to prepare the testbed to run the samples.'
|
||||
'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',
|
||||
action='store',
|
||||
help='ESX HOST 1 IP to prepare the testbed to run the samples.'
|
||||
|
Loading…
Reference in New Issue
Block a user