File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
samples/vsphere/vcenter/setup Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 50
50
_testbed .config ['ESX_HOST2' ] = args .esxhost2
51
51
if (args .nfsserver ):
52
52
_testbed .config ['NFS_HOST' ] = args .nfsserver
53
+ if (args .esxpassword ):
54
+ _testbed .config ['ESX_PASS' ] = args .esxpassword
53
55
54
56
print (_testbed .to_config_string ())
55
57
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def build_arg_parser():
39
39
-e1, --esxhost1
40
40
-e2, --esxhost2
41
41
-n, --nfsserver
42
+ -epassword, --esxpassword
42
43
43
44
"""
44
45
parser = argparse .ArgumentParser (
@@ -103,4 +104,8 @@ def build_arg_parser():
103
104
action = 'store' ,
104
105
help = 'NFS Server IP to setup datastore for samples run.'
105
106
'If not passed as argument, update testbed.py file' )
107
+ parser .add_argument ('-epassword' , '--esxpassword' ,
108
+ action = 'store' ,
109
+ help = 'ESX Server password'
110
+ 'If not passed as argument, update testbed.py file' )
106
111
return parser
You can’t perform that action at this time.
0 commit comments