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
|
# 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
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
2
tox.ini
2
tox.ini
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user