refactor: make variable as dns hostname more clear

This commit is contained in:
Jose Diaz-Gonzalez
2018-04-24 02:54:58 -04:00
parent e3b9237e59
commit 8ac361f930
2 changed files with 9 additions and 9 deletions

View File

@@ -145,6 +145,6 @@ service_password() {
service_url() {
local SERVICE="$1"
local PASSWORD="$(service_password "$SERVICE")"
local SERVICE_ALIAS="$(service_alias "$SERVICE")"
echo "$PLUGIN_SCHEME://$SERVICE:$PASSWORD@$SERVICE_ALIAS:${PLUGIN_DATASTORE_PORTS[0]}"
local SERVICE_DNS_HOSTNAME="$(service_dns_hostname "$SERVICE")"
echo "$PLUGIN_SCHEME://$SERVICE:$PASSWORD@$SERVICE_DNS_HOSTNAME:${PLUGIN_DATASTORE_PORTS[0]}"
}