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 # Change affinities (number of containers per host) if the appropriate
# environment variables are set. # environment variables are set.
for container_type in keystone galera rabbit_mq horizon repo for container_type in keystone galera rabbit_mq horizon repo; do
do
var_name="NUM_${container_type}_CONTAINER" var_name="NUM_${container_type}_CONTAINER"
set +u set +u
num=${!var_name} num=${!var_name}
@ -296,8 +295,7 @@ if [ ${DEPLOY_CEILOMETER} == "yes" ]; then
service mongodb restart service mongodb restart
# Wait for mongodb to restart # Wait for mongodb to restart
for i in {1..12} for i in {1..12}; do
do
mongo --host $MONGO_HOST --eval ' ' && break mongo --host $MONGO_HOST --eval ' ' && break
sleep 5 sleep 5
done done

View File

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

View File

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

View File

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

View File

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