Skip to content

Commit

Permalink
Fix some linter warnings, part 19 (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalfishpond authored and matrixik committed Oct 25, 2017
1 parent 5b94ad1 commit 3b52259
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions grafana/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

# shellcheck disable=SC2153
if [ -n "$GF_DATABASE_PORT" ]; then
export GF_DATABASE_HOST=$GF_DATABASE_HOST":"$GF_DATABASE_PORT
fi
Expand Down
21 changes: 11 additions & 10 deletions monasca-log-agent/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# shellcheck disable=SC2086
# (C) Copyright 2017 FUJITSU LIMITED

MONASCA_LOG_API_WAIT_RETRIES=${MONASCA_LOG_API_WAIT_RETRIES:-"24"}
Expand Down Expand Up @@ -30,20 +31,20 @@ wait_for_keystone() {
for i in $(seq "$KEYSTONE_WAIT_RETRIES"); do
curl --fail --silent --show-error --output - \
-H "Content-Type: application/json" \
-d "
{ \"auth\": {
\"identity\": {
\"methods\": [\"password\"],
\"password\": {
\"user\": {
\"name\": \""$OS_USERNAME"\",
\"domain\": { \"id\": \""$OS_USER_DOMAIN_NAME"\" },
\"password\": \""$OS_PASSWORD"\"
-d '
{ "auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "'$OS_USERNAME'",
"domain": { "id": "'$OS_USER_DOMAIN_NAME'" },
"password": "'$OS_PASSWORD'"
}
}
}
}
}" "$OS_AUTH_URL"/auth/tokens 2>&1 && return
}' "$OS_AUTH_URL"/auth/tokens 2>&1 && return

echo "Keystone not yet ready (attempt $i of $KEYSTONE_WAIT_RETRIES)"
sleep "$KEYSTONE_WAIT_DELAY"
Expand Down

0 comments on commit 3b52259

Please sign in to comment.