Remove usage of parameter enforce_type
Oslo.config deprecated parameter enforce_type and change its default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove the usage of it to avoid DeprecationWarning: "Using the 'enforce_type' argument is deprecated in version '4.0' and will be removed in version '5.0': The argument enforce_type has changed its default value to True and then will be removed completely." Change-Id: Ic0d29ae6aa286dba9832756e214095e79bde427a Related-Bug: #1517839
This commit is contained in:
parent
29e03f6a8a
commit
bb16b179e7
@ -81,7 +81,7 @@ class TestCase(base.BaseTestCase):
|
||||
"""Override config options for a test."""
|
||||
group = kw.pop('group', None)
|
||||
for k, v in kw.items():
|
||||
CONF.set_override(k, v, group, enforce_type=True)
|
||||
CONF.set_override(k, v, group)
|
||||
|
||||
def stub_out(self, old, new):
|
||||
"""Replace a function for the duration of the test.
|
||||
|
Loading…
Reference in New Issue
Block a user