1 From: Josep Puigdemont <josep.puigdemont@enea.com>
2 Date: Wed, 4 May 2016 14:27:23 +0200
3 Subject: [PATCH] deploy.sh: do not expect a parameter for -h
5 If -h was given as a parameter to the script, it would report an error
6 as it expected a parameter, and if it was called as the only parameter,
7 it would run deploy.py as if "old style" parameters had been given, thus
8 showing the usage for the python script, instead of the expected usage
9 message for this script.
11 Update the usage message to include -h.
13 Change-Id: I0930936962c1cb479ec4409ff114cd60a386b276
14 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
17 1 file changed, 3 insertions(+), 1 deletion(-)
19 diff --git a/ci/deploy.sh b/ci/deploy.sh
20 index d83bba2..dc13f1c 100755
23 @@ -40,6 +40,7 @@ OPTIONS:
24 -f Deploy on existing Fuel master
25 -e Do not launch environment deployment
26 -F Do only create a Fuel master
27 + -h Print this message and exit
31 @@ -62,6 +63,7 @@ Input parameters to the build script is:
32 -f Deploy on existing Fuel master
33 -e Do not launch environment deployment
34 -F Do only create a Fuel master
35 +-h Print this message and exit
36 -H Do not run fuel built in health-check after successfull deployment
37 -l Lab name as defined in the configuration directory, e.g. lf
38 -p POD name as defined in the configuration directory, e.g. pod-1
39 @@ -116,7 +118,7 @@ DRY_RUN=0
40 ############################################################################
43 -while getopts "b:B:dfFHl:p:s:S:i:h:e" OPTION
44 +while getopts "b:B:dfFHl:p:s:S:i:he" OPTION