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:
David Stanek 2015-07-30 23:21:52 +00:00 committed by Jesse Pretorius
parent 65d620cbb7
commit 6351214ca5
5 changed files with 6 additions and 11 deletions

View File

@ -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

View File

@ -29,8 +29,7 @@ usage()
}
while [[ $# > 0 ]]
do
while [[ $# > 0 ]]; do
key="$1"
case $key in
-d|--domain)

View File

@ -33,8 +33,7 @@ exit 0
fi
# Provide some CLI options
while [[ $# > 1 ]]
do
while [[ $# > 1 ]]; do
key="$1"
case $key in
-b|--branch)

View File

@ -27,8 +27,7 @@ exit 0
fi
# Provide some CLI options
while [[ $# > 1 ]]
do
while [[ $# > 1 ]]; do
key="$1"
case $key in
-r|--revision)

View File

@ -28,4 +28,4 @@ commands =
bash -c "find {toxinidir} \
-not -path '*/\.*' \ # stay out of the dot directories
-name '*sh' \ # all shell scripts please
-print0 | xargs -0 bashate -v -i E003,E010,E011"
-print0 | xargs -0 bashate -v -i E003,E011"