Fixed remote host and case condition

Change-Id: I57acbac9455dd2eac499c21ff0c5bdeb4234923a
This commit is contained in:
Igor Yozhikov
2014-05-26 18:40:35 +04:00
parent 8ce213eb07
commit b665878b42
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ function prepare_component()
return 1
fi
case $COMPONENT_NAME in
murano-dashboard)
"murano-dashboard")
case $distro_based_on in
"debian")
WEB_SERVICE_SYSNAME="apache2"
@@ -99,7 +99,7 @@ function prepare_component()
fi
service $WEB_SERVICE_SYSNAME restart || retval=$?
;;
murano-api)
"murano-api")
echo "Handling \"$COMPONENT_NAME\" for future use"
;;
esac

View File

@@ -87,8 +87,8 @@ function run_component_deploy()
retval=1
else
local component=$1
echo "Running: sudo bash -x ${CI_ROOT_DIR}/infra/deploy_component_new.sh $ZUUL_REF $component noop $ZUUL_URL"
sudo bash -x ${CI_ROOT_DIR}/infra/deploy_component_new.sh $ZUUL_REF $component noop $ZUUL_URL
echo "Running: sudo bash -x ${CI_ROOT_DIR}/infra/deploy_component_new.sh $ZUUL_REF $component $KEYSTONE_URL $ZUUL_URL"
sudo bash -x ${CI_ROOT_DIR}/infra/deploy_component_new.sh $ZUUL_REF $component $KEYSTONE_URL $ZUUL_URL
if [ $? -ne 0 ]; then
echo "\"${FUNCNAME[0]}\" return error!"
retval=1