summaryrefslogtreecommitdiffstats
path: root/kubernetes/robot
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2018-04-25 16:47:52 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-25 16:47:52 +0000
commit21d014998ed7e14ab99bcf9bc9ce7f8751247bfd (patch)
treeaa498b879b383b36e81a83f10adad939e837fb49 /kubernetes/robot
parent8331e6a9722da7f733b93522e457750af06cb171 (diff)
parent270663019ce2150a2a5dd3190e9e81ef76faba5c (diff)
Merge "Fix demo-k8"
Diffstat (limited to 'kubernetes/robot')
-rwxr-xr-xkubernetes/robot/demo-k8s.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/kubernetes/robot/demo-k8s.sh b/kubernetes/robot/demo-k8s.sh
index d5e7a0384d..de3362740e 100755
--- a/kubernetes/robot/demo-k8s.sh
+++ b/kubernetes/robot/demo-k8s.sh
@@ -36,7 +36,11 @@ function usage
}
# Set the defaults
-if [ $# -le 2 ];then
+
+echo "Number of parameters:"
+echo $#
+
+if [ $# -lt 2 ];then
usage
exit
fi
@@ -47,9 +51,11 @@ shift
##
## if more than 1 tag is supplied, the must be provided with -i or -e
##
-while [ $# -gt 1 ]
+while [ $# -gt 0 ]
do
- key="$2"
+ key="$1"
+ echo "KEY:"
+ echo $key
case $key in
init_robot)