diff --git a/cluster/openstack-heat/util.sh b/cluster/openstack-heat/util.sh index 8d06e415fae..66726db3e23 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"