Fixes loops for bashate
The 'do' is expected to be on the same line as the 'for' or 'while' in a loop declaration. Change-Id: I87591aac700af858e174c88cca03d06fe9688c59
This commit is contained in:
parent
65d620cbb7
commit
6351214ca5
@ -276,8 +276,7 @@ sed -i "s/external_lb_vip_address:.*/external_lb_vip_address: ${PUBLIC_ADDRESS}/
|
||||
|
||||
# Change affinities (number of containers per host) if the appropriate
|
||||
# environment variables are set.
|
||||
for container_type in keystone galera rabbit_mq horizon repo
|
||||
do
|
||||
for container_type in keystone galera rabbit_mq horizon repo; do
|
||||
var_name="NUM_${container_type}_CONTAINER"
|
||||
set +u
|
||||
num=${!var_name}
|
||||
@ -296,8 +295,7 @@ if [ ${DEPLOY_CEILOMETER} == "yes" ]; then
|
||||
service mongodb restart
|
||||
|
||||
# Wait for mongodb to restart
|
||||
for i in {1..12}
|
||||
do
|
||||
for i in {1..12}; do
|
||||
mongo --host $MONGO_HOST --eval ' ' && break
|
||||
sleep 5
|
||||
done
|
||||
|
@ -29,8 +29,7 @@ usage()
|
||||
}
|
||||
|
||||
|
||||
while [[ $# > 0 ]]
|
||||
do
|
||||
while [[ $# > 0 ]]; do
|
||||
key="$1"
|
||||
case $key in
|
||||
-d|--domain)
|
||||
|
@ -33,8 +33,7 @@ exit 0
|
||||
fi
|
||||
|
||||
# Provide some CLI options
|
||||
while [[ $# > 1 ]]
|
||||
do
|
||||
while [[ $# > 1 ]]; do
|
||||
key="$1"
|
||||
case $key in
|
||||
-b|--branch)
|
||||
|
@ -27,8 +27,7 @@ exit 0
|
||||
fi
|
||||
|
||||
# Provide some CLI options
|
||||
while [[ $# > 1 ]]
|
||||
do
|
||||
while [[ $# > 1 ]]; do
|
||||
key="$1"
|
||||
case $key in
|
||||
-r|--revision)
|
||||
|
Loading…
Reference in New Issue
Block a user