diff --git a/doc/training-guides/basic-install-guide/keystone-scripts/keystone_basic.sh b/doc/training-guides/basic-install-guide/keystone-scripts/keystone_basic.sh index 05ab9966..dad408db 100644 --- a/doc/training-guides/basic-install-guide/keystone-scripts/keystone_basic.sh +++ b/doc/training-guides/basic-install-guide/keystone-scripts/keystone_basic.sh @@ -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 diff --git a/doc/training-guides/basic-install-guide/keystone-scripts/keystone_endpoints_basic.sh b/doc/training-guides/basic-install-guide/keystone-scripts/keystone_endpoints_basic.sh index 28fc5b56..0170f2f8 100644 --- a/doc/training-guides/basic-install-guide/keystone-scripts/keystone_endpoints_basic.sh +++ b/doc/training-guides/basic-install-guide/keystone-scripts/keystone_endpoints_basic.sh @@ -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