Skip to content

Commit be279fb

Browse files
committed
add vc password parameter
1 parent ade24a2 commit be279fb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

samples/vsphere/vcenter/setup/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
# then override testbed.py values
4646
if (args.vcenterserver):
4747
_testbed.config['SERVER'] = args.vcenterserver
48+
if (args.vcpassword):
49+
_testbed.config['PASSWORD'] = args.vcpassword
4850
if (args.esxhost1):
4951
_testbed.config['ESX_HOST1'] = args.esxhost1
5052
if (args.esxhost2):

samples/vsphere/vcenter/setup/setup_cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ def build_arg_parser():
9191
help='Vcenter server IP to prepare the testbed to run the samples.'
9292
'If not passed as argument, update testbed.py file')
9393

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+
9499
parser.add_argument('-e1', '--esxhost1',
95100
action='store',
96101
help='ESX HOST 1 IP to prepare the testbed to run the samples.'

0 commit comments

Comments
 (0)