Merge "Correct checking of swift_enabled service param" into r/2018.10

This commit is contained in:
Zuul 2018-10-12 14:35:40 +00:00 committed by Gerrit Code Review
commit 3af14db111
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ class SBApiHelper(object):
service=constants.SERVICE_TYPE_SWIFT,
section=constants.SERVICE_PARAM_SECTION_SWIFT_CONFIG,
name=constants.SERVICE_PARAM_NAME_SWIFT_SERVICE_ENABLED)
if swift_enabled:
if swift_enabled.value.lower() == 'true':
raise wsme.exc.ClientSideError(
"Swift is already enabled through service parameter.")
except exception.SysinvException: