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: I642a341e7532e4b0fdd0719c5cac6933842a4fa4
Related--Bug: #1517839
This commit is contained in:
Van Hung Pham 2017-06-19 15:47:43 +07:00
parent 1223668db8
commit 8cefb6c4d6
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class DistilTestCase(base.BaseTestCase):
test by the tearDown() method.
"""
for k, v in kw.items():
self.conf.set_override(k, v, group, enforce_type=True)
self.conf.set_override(k, v, group)
def _my_dir(self):
return os.path.abspath(os.path.dirname(__file__))