diff --git a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/utils.py b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/utils.py index f36ccd8c37..bf8f39f3ab 100644 --- a/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/utils.py +++ b/sysinv/sysinv/sysinv/sysinv/api/controllers/v1/utils.py @@ -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: