From 4af9127cb66da348b01882816dd0542db0b93ae2 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Tue, 11 Apr 2017 14:30:52 +0800 Subject: [PATCH] Remove usage of parameter enforce_type We deprecate and change parameter enforce_type's default value to True[1], so don't need usage enforce_type. [1] https://review.openstack.org/328692 Change-Id: Ib89cb9bc8afa13e13350e80ec9210ab9e878201f --- oslo_messaging/conffixture.py | 5 ++--- oslo_messaging/tests/utils.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/oslo_messaging/conffixture.py b/oslo_messaging/conffixture.py index b294a9aa0..b441cb441 100644 --- a/oslo_messaging/conffixture.py +++ b/oslo_messaging/conffixture.py @@ -129,7 +129,7 @@ class ConfFixture(fixtures.Fixture): @transport_driver.setter def transport_driver(self, value): - self.conf.set_override('rpc_backend', value, enforce_type=True) + self.conf.set_override('rpc_backend', value) @property def response_timeout(self): @@ -138,5 +138,4 @@ class ConfFixture(fixtures.Fixture): @response_timeout.setter def response_timeout(self, value): - self.conf.set_override('rpc_response_timeout', value, - enforce_type=True) + self.conf.set_override('rpc_response_timeout', value) diff --git a/oslo_messaging/tests/utils.py b/oslo_messaging/tests/utils.py index 39f27ca0a..8dcdede8f 100644 --- a/oslo_messaging/tests/utils.py +++ b/oslo_messaging/tests/utils.py @@ -59,7 +59,7 @@ class BaseTestCase(base.BaseTestCase): """ group = kw.pop('group', None) for k, v in kw.items(): - self.conf.set_override(k, v, group, enforce_type=True) + self.conf.set_override(k, v, group) class ServerThreadHelper(threading.Thread):