From 254fd552459851bf0f4ec5e721a3981e3546857f Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Mon, 30 Jun 2014 12:22:59 +0000 Subject: [PATCH] Only enable auth_token in swift with keystone We don't need to enable auth_token in pipeline when we don't have keystone enabled. Change-Id: I4695817766fc39fcceed32f71156d4123d5bdfa1 --- lib/swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/swift b/lib/swift index c47b09f6d7..ae5229218f 100644 --- a/lib/swift +++ b/lib/swift @@ -354,7 +354,12 @@ function configure_swift { if is_service_enabled swift3;then swift_pipeline+=" swift3 s3token " fi - swift_pipeline+=" authtoken keystoneauth tempauth " + + if is_service_enabled key;then + swift_pipeline+=" authtoken keystoneauth" + fi + swift_pipeline+=" tempauth " + sed -i "/^pipeline/ { s/tempauth/${swift_pipeline} ${SWIFT_EXTRAS_MIDDLEWARE}/ ;}" ${SWIFT_CONFIG_PROXY_SERVER} sed -i "/^pipeline/ { s/proxy-server/${SWIFT_EXTRAS_MIDDLEWARE_LAST} proxy-server/ ; }" ${SWIFT_CONFIG_PROXY_SERVER}