Fix TypeError on configparser
ConfigParser only accept strings, these two opptions were setting to boolean python value, and failing with TypeEror exception option values must be strings Closes-Bug: #1866687 Change-Id: Ia37ad9e14b51132f7ffd234e8010188e086a6ddf
This commit is contained in:
parent
0099f408da
commit
2722268479
@ -46,7 +46,7 @@ class ShareService(VersionedService):
|
|||||||
]
|
]
|
||||||
conf.set('share', 'backend_names', ','.join(backends))
|
conf.set('share', 'backend_names', ','.join(backends))
|
||||||
if len(backends) > 1:
|
if len(backends) > 1:
|
||||||
conf.set('share', 'multi_backend', True)
|
conf.set('share', 'multi_backend', 'True')
|
||||||
|
|
||||||
def get_unversioned_service_type(self):
|
def get_unversioned_service_type(self):
|
||||||
return 'share'
|
return 'share'
|
||||||
|
@ -58,7 +58,7 @@ class VolumeService(VersionedService):
|
|||||||
]
|
]
|
||||||
conf.set('volume', 'backend_names', ','.join(backends))
|
conf.set('volume', 'backend_names', ','.join(backends))
|
||||||
if len(backends) > 1:
|
if len(backends) > 1:
|
||||||
conf.set('volume-feature-enabled', 'multi_backend', True)
|
conf.set('volume-feature-enabled', 'multi_backend', 'True')
|
||||||
|
|
||||||
def get_service_extension_key(self):
|
def get_service_extension_key(self):
|
||||||
return 'api_extensions'
|
return 'api_extensions'
|
||||||
|
Loading…
Reference in New Issue
Block a user