Fix typos on three comments and one message

Fixes typos on three comments and one message
in functions/functions-common

Change-Id: I2c926ca29b284afd4534b92860fa46f248676a83
This commit is contained in:
Atsushi SAKAI 2015-11-12 19:50:00 +09:00
parent 1987cfb1be
commit 33c9a67ead
2 changed files with 4 additions and 4 deletions

@ -410,7 +410,7 @@ function get_instance_ip {
ip=$(echo "$nova_result" | grep "$network_name" | get_field 2) ip=$(echo "$nova_result" | grep "$network_name" | get_field 2)
if [[ $ip = "" ]];then if [[ $ip = "" ]];then
echo "$nova_result" echo "$nova_result"
die $LINENO "[Fail] Coudn't get ipaddress of VM" die $LINENO "[Fail] Couldn't get ipaddress of VM"
fi fi
echo $ip echo $ip
} }

@ -1036,7 +1036,7 @@ function _parse_package_files {
# We are using BASH regexp matching feature. # We are using BASH regexp matching feature.
package=${BASH_REMATCH[1]} package=${BASH_REMATCH[1]}
distros=${BASH_REMATCH[2]} distros=${BASH_REMATCH[2]}
# In bash ${VAR,,} will lowecase VAR # In bash ${VAR,,} will lowercase VAR
# Look for a match in the distro list # Look for a match in the distro list
if [[ ! ${distros,,} =~ ${DISTRO,,} ]]; then if [[ ! ${distros,,} =~ ${DISTRO,,} ]]; then
# If no match then skip this package # If no match then skip this package
@ -1509,7 +1509,7 @@ function stop_process {
# this fixed in all services: # this fixed in all services:
# https://bugs.launchpad.net/oslo-incubator/+bug/1446583 # https://bugs.launchpad.net/oslo-incubator/+bug/1446583
sleep 1 sleep 1
# /bin/true becakse pkill on a non existant process returns an error # /bin/true because pkill on a non existent process returns an error
pkill -g $(cat $SERVICE_DIR/$SCREEN_NAME/$service.pid) || /bin/true pkill -g $(cat $SERVICE_DIR/$SCREEN_NAME/$service.pid) || /bin/true
fi fi
rm $SERVICE_DIR/$SCREEN_NAME/$service.pid rm $SERVICE_DIR/$SCREEN_NAME/$service.pid
@ -1717,7 +1717,7 @@ function plugin_override_defaults {
if [[ -f $dir/devstack/override-defaults ]]; then if [[ -f $dir/devstack/override-defaults ]]; then
# be really verbose that an override is happening, as it # be really verbose that an override is happening, as it
# may not be obvious if things fail later. # may not be obvious if things fail later.
echo "$plugin has overriden the following defaults" echo "$plugin has overridden the following defaults"
cat $dir/devstack/override-defaults cat $dir/devstack/override-defaults
source $dir/devstack/override-defaults source $dir/devstack/override-defaults
fi fi