Browse Source

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: Iec5a9b8241aef4aafe72a83501b13fad150780b5
rajat29 1 year ago
parent
commit
bb1ddb328b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      networking_dpm/tests/base.py

+ 1
- 1
networking_dpm/tests/base.py View File

@@ -27,4 +27,4 @@ class BaseTestCase(base.BaseTestCase):
27 27
         """Override config variables for a test."""
28 28
         group = kw.pop('group', None)
29 29
         for k, v in kw.items():
30
-            cfg.CONF.set_override(k, v, group, enforce_type=True)
30
+            cfg.CONF.set_override(k, v, group)

Loading…
Cancel
Save