mirror of
https://github.com/vmware/vsphere-automation-sdk-python.git
synced 2024-11-25 02:39:59 -05:00
Adding ESXPASSWORD as commandline argument. ESXPassword cannot be hardcoded in testbed.py file since ESX doesnt have default password
Signed-off-by: Pavan Bidkar <pbidkar@vmware.com> Adding ESXPASSWORD as commandline argument. ESXPassword cannot be hardcoded in testbed.py file since ESX doesnt have default password Signed-off-by: Pavan Bidkar <pbidkar@vmware.com>
This commit is contained in:
parent
2c7054245e
commit
46ab4ce349
@ -49,9 +49,12 @@ if (args.esxhost1):
|
|||||||
_testbed.config['ESX_HOST1'] = args.esxhost1
|
_testbed.config['ESX_HOST1'] = args.esxhost1
|
||||||
if (args.esxhost2):
|
if (args.esxhost2):
|
||||||
_testbed.config['ESX_HOST2'] = args.esxhost2
|
_testbed.config['ESX_HOST2'] = args.esxhost2
|
||||||
|
if (args.esxpassword):
|
||||||
|
_testbed.config['ESX_PASS'] = args.esxpassword
|
||||||
if (args.nfsserver):
|
if (args.nfsserver):
|
||||||
_testbed.config['NFS_HOST'] = args.nfsserver
|
_testbed.config['NFS_HOST'] = args.nfsserver
|
||||||
|
|
||||||
|
|
||||||
print(_testbed.to_config_string())
|
print(_testbed.to_config_string())
|
||||||
|
|
||||||
# Connect to VIM API Endpoint on vCenter system
|
# Connect to VIM API Endpoint on vCenter system
|
||||||
|
@ -39,6 +39,7 @@ def build_arg_parser():
|
|||||||
-server, --vcenterserver
|
-server, --vcenterserver
|
||||||
-e1, --esxhost1
|
-e1, --esxhost1
|
||||||
-e2, --esxhost2
|
-e2, --esxhost2
|
||||||
|
-epass, --esxpassword
|
||||||
-n, --nfsserver
|
-n, --nfsserver
|
||||||
|
|
||||||
"""
|
"""
|
||||||
@ -100,6 +101,11 @@ def build_arg_parser():
|
|||||||
help='ESX HOST 2 IP to prepare the testbed to run the samples.'
|
help='ESX HOST 2 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('-epass', '--esxpassword',
|
||||||
|
action='store',
|
||||||
|
help='ESX Server password'
|
||||||
|
'If not passed as argument, update testbed.py file')
|
||||||
|
|
||||||
parser.add_argument('-n', '--nfsserver',
|
parser.add_argument('-n', '--nfsserver',
|
||||||
action='store',
|
action='store',
|
||||||
help='NFS Server IP to setup datastore for samples run.'
|
help='NFS Server IP to setup datastore for samples run.'
|
||||||
|
Loading…
Reference in New Issue
Block a user