Skip to content

Commit 4693db2

Browse files
authored
Merge pull request #6 from pgbidkar/master
Adding ESXPASSWORD as commandline argument. ESXPassword cannot be har…
2 parents 2c70542 + 46ab4ce commit 4693db2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

samples/vsphere/vcenter/setup/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@
4949
_testbed.config['ESX_HOST1'] = args.esxhost1
5050
if (args.esxhost2):
5151
_testbed.config['ESX_HOST2'] = args.esxhost2
52+
if (args.esxpassword):
53+
_testbed.config['ESX_PASS'] = args.esxpassword
5254
if (args.nfsserver):
5355
_testbed.config['NFS_HOST'] = args.nfsserver
5456

57+
5558
print(_testbed.to_config_string())
5659

5760
# Connect to VIM API Endpoint on vCenter system

samples/vsphere/vcenter/setup/setup_cli.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def build_arg_parser():
3939
-server, --vcenterserver
4040
-e1, --esxhost1
4141
-e2, --esxhost2
42+
-epass, --esxpassword
4243
-n, --nfsserver
4344
4445
"""
@@ -100,6 +101,11 @@ def build_arg_parser():
100101
help='ESX HOST 2 IP to prepare the testbed to run the samples.'
101102
'If not passed as argument, update testbed.py file')
102103

104+
parser.add_argument('-epass', '--esxpassword',
105+
action='store',
106+
help='ESX Server password'
107+
'If not passed as argument, update testbed.py file')
108+
103109
parser.add_argument('-n', '--nfsserver',
104110
action='store',
105111
help='NFS Server IP to setup datastore for samples run.'

0 commit comments

Comments
 (0)