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 45
45
# then override testbed.py values
46
46
if (args .vcenterserver ):
47
47
_testbed .config ['SERVER' ] = args .vcenterserver
48
+ if (args .vcpassword ):
49
+ _testbed .config ['PASSWORD' ] = args .vcpassword
48
50
if (args .esxhost1 ):
49
51
_testbed .config ['ESX_HOST1' ] = args .esxhost1
50
52
if (args .esxhost2 ):
Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ def build_arg_parser():
91
91
help = 'Vcenter server IP to prepare the testbed to run the samples.'
92
92
'If not passed as argument, update testbed.py file' )
93
93
94
+ parser .add_argument ('-p' , '--vcenterpassword' ,
95
+ action = 'store' ,
96
+ help = 'Vcenter server password'
97
+ 'If not passed as argument, update testbed.py file' )
98
+
94
99
parser .add_argument ('-e1' , '--esxhost1' ,
95
100
action = 'store' ,
96
101
help = 'ESX HOST 1 IP to prepare the testbed to run the samples.'
You can’t perform that action at this time.
0 commit comments