discoverability may not be defined on object-storage-feature-enabled

Using a deployer-input file that includes object-storage-feature-enabled
section without discoverability fails, although discoverability is an
optional parameter

Change-Id: I52838fc6b6f7e576604764e1b8b7938fe4b2ea0d
This commit is contained in:
Eduardo Olivares 2022-03-04 13:13:23 +01:00
parent 490a7ea40b
commit 8e5a594d93

View File

@ -99,7 +99,7 @@ class ObjectStorageService(Service):
'discoverability')):
return False
return True
except configparser.NoSectionError:
except (configparser.NoSectionError, configparser.NoOptionError):
# On swift, healthcheck is under http://.../healthcheck, while in
# ceph is under http://.../swift/healthcheck, we check both cases
return_value = self._check_health_check('healthcheck')