Ensure only 1 Swift URL is used

This commit is contained in:
Jamie Hannaford 2017-02-16 16:11:07 +01:00
parent 7d4383c6e1
commit 708f917e63

View File

@ -194,7 +194,7 @@ function run-heat-script() {
else else
rgx="publicURL: (.+)$" rgx="publicURL: (.+)$"
fi fi
SWIFT_SERVER_URL=$(openstack catalog show object-store --format value | egrep -o "$rgx" | cut -d" " -f2) SWIFT_SERVER_URL=$(openstack catalog show object-store --format value | egrep -o "$rgx" | cut -d" " -f2 | head -n 1)
fi fi
local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes" local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes"