Merge "Fix: make sure that keystone_v3_support is a boolean"

This commit is contained in:
Zuul 2018-08-07 13:19:21 +00:00 committed by Gerrit Code Review
commit 96a44c46c7
1 changed files with 5 additions and 1 deletions

View File

@ -264,7 +264,11 @@ class Services(object):
def set_service_extensions(self):
postfix = "-feature-enabled"
keystone_v3_support = self._conf.get('identity' + postfix, 'api_v3')
try:
keystone_v3_support = self._conf.getboolean('identity' + postfix,
'api_v3')
except ValueError:
keystone_v3_support = False
if keystone_v3_support:
self.get_service('identity').set_identity_v3_extensions()