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
luqitao 2017-05-31 23:22:57 -04:00
parent 29e03f6a8a
commit bb16b179e7
1 changed files with 1 additions and 1 deletions

View File

@ -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.