From 708f917e637f8834703bb0649db97937fe94e065 Mon Sep 17 00:00:00 2001 From: Jamie Hannaford Date: Thu, 16 Feb 2017 16:11:07 +0100 Subject: [PATCH] Ensure only 1 Swift URL is used --- cluster/openstack-heat/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/openstack-heat/util.sh b/cluster/openstack-heat/util.sh index 832b007e05b..7a4af374cda 100644 --- a/cluster/openstack-heat/util.sh +++ b/cluster/openstack-heat/util.sh @@ -194,7 +194,7 @@ function run-heat-script() { else rgx="publicURL: (.+)$" 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 local swift_repo_url="${SWIFT_SERVER_URL}/kubernetes"