From 44222e1dee7febe304f8abfe5c927015e040bdb8 Mon Sep 17 00:00:00 2001 From: Pavan Bidkar Date: Thu, 17 Aug 2017 23:53:35 +0530 Subject: [PATCH] Fixed argument name in main.py to vcenterpassword, which was differing with build_arg_parser() from setup_cli.py. Added Argument in help text (#3) Signed-off-by: Pavan Bidkar pbidkar@vmware.com Signed-off-by: pgbidkar --- samples/vsphere/vcenter/setup/main.py | 4 ++-- samples/vsphere/vcenter/setup/setup_cli.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/samples/vsphere/vcenter/setup/main.py b/samples/vsphere/vcenter/setup/main.py index e4617faa..ea1a4589 100644 --- a/samples/vsphere/vcenter/setup/main.py +++ b/samples/vsphere/vcenter/setup/main.py @@ -45,8 +45,8 @@ _testbed = testbed.get() # then override testbed.py values if (args.vcenterserver): _testbed.config['SERVER'] = args.vcenterserver -if (args.vcpassword): - _testbed.config['PASSWORD'] = args.vcpassword +if (args.vcenterpassword): + _testbed.config['PASSWORD'] = args.vcenterpassword if (args.esxhost1): _testbed.config['ESX_HOST1'] = args.esxhost1 if (args.esxhost2): diff --git a/samples/vsphere/vcenter/setup/setup_cli.py b/samples/vsphere/vcenter/setup/setup_cli.py index 9d2493fe..67016736 100644 --- a/samples/vsphere/vcenter/setup/setup_cli.py +++ b/samples/vsphere/vcenter/setup/setup_cli.py @@ -37,6 +37,7 @@ def build_arg_parser(): -l, --samples_cleanup -v, --skipverification -server, --vcenterserver + -p, --vcenterpassword -e1, --esxhost1 -e2, --esxhost2 -epass, --esxpassword