Fix the failure to create swift endpoints

Shell scripts are whitespace sensitive, in particular

a= $(echo A)
a=\
   $(echo A)

tries to run the 'A' executable somewhere in $PATH with environment variable
`a' set to an empty string.

Change-Id: I57648e597a2875061f38c8669370598348e2c6f9
This commit is contained in:
Alexey Sheplyakov 2016-06-27 17:40:01 +03:00
parent 28ae5aeae3
commit a007c2c76f
1 changed files with 2 additions and 4 deletions

View File

@ -419,12 +419,10 @@ EOF
function _create_swift_endpoint {
local swift_service
swift_service=\
$(get_or_create_service "swift" "object-store" "Swift Service")
swift_service=$(get_or_create_service "swift" "object-store" "Swift Service")
local swift_endpoint
swift_endpoint=\
"$SWIFT_SERVICE_PROTOCOL://$SERVICE_HOST:${CEPH_RGW_PORT}/swift/v1"
swift_endpoint="$SWIFT_SERVICE_PROTOCOL://$SERVICE_HOST:${CEPH_RGW_PORT}/swift/v1"
get_or_create_endpoint $swift_service \
"$REGION_NAME" $swift_endpoint $swift_endpoint $swift_endpoint