fix: check correct variable

This commit is contained in:
Jose Diaz-Gonzalez authored and Michael Hobbs committed 2017-10-02 15:05:13 -07:00
1 parent aee88d081d
commit 06a7cb2a3d
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ network-get-container-ipaddr() {
if [[ "$DOKKU_IS_APP_PROXY_ENABLED" == "true" ]]; then
IP_ADDRESS="$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' "$CONTAINER_ID")"
# Docker < 1.9 compatibility
if [[ -z $ipaddr ]]; then
if [[ -z "$IP_ADDRESS" ]]; then
IP_ADDRESS=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$CONTAINER_ID")
fi
fi