Skip to content

Commit

Permalink
Merge pull request #146 from nicolasbock/keystone
Browse files Browse the repository at this point in the history
Remove hard-coded unit reference
  • Loading branch information
dosaboy authored Oct 27, 2023
2 parents 4a98117 + 534a8db commit f6f144b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstack/novarc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ done

keystone_addr=`juju config keystone vip`
if [ -z "$keystone_addr" ]; then
keystone_addr=`jq -r '.applications.keystone.units."keystone/0"."public-address"' $juju_status_json_cache`
keystone_addr=$(jq --raw-output '.applications.keystone.units[] | select (.leader == true) | .["public-address"]' $juju_status_json_cache)
fi

# check config-based ssl first
Expand Down

0 comments on commit f6f144b

Please sign in to comment.