Merge "Use $(COMMAND) instead of COMMAND"

This commit is contained in:
Jenkins 2014-10-03 07:33:17 +00:00 committed by Gerrit Code Review
commit 46174a35d4
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export SERVICE_ENDPOINT="http://${HOST_IP}:35357/v2.0"
SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service}
get_id () {
echo `$@ | awk '/ id / { print $4 }'`
echo $($@ | awk '/ id / { print $4 }')
}
# Tenants

View File

@ -128,6 +128,6 @@ create_endpoint () {
}
for i in compute volume image object-store identity ec2 network; do
id=`mysql -h "$MYSQL_HOST" -u "$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE" -ss -e "SELECT id FROM service WHERE type='"$i"';"` || exit 1
id=$(mysql -h "$MYSQL_HOST" -u "$MYSQL_USER" -p"$MYSQL_PASSWORD" "$MYSQL_DATABASE" -ss -e "SELECT id FROM service WHERE type='"$i"';") || exit 1
create_endpoint $i $id
done