From 01a44b171ed26887bef8c3ef3139430f5b6840dc Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Tue, 28 Mar 2017 14:17:42 -0400 Subject: [PATCH] oslo.config will begin to enfore types in a future version Early versions of oslo.config allowed any type when overriding a config setting. Future versions of oslo.config will default to enforcing the type[1]. This changes silences the deprecation warning by passing the proper value type to override. [1] https://review.openstack.org/#/c/365476/ Change-Id: Ie9fd8f0b8e9b75492854e22e4f169ac56cfd548d --- .../tests/unit/l3Plugin/test_arista_l3_driver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/networking_arista/tests/unit/l3Plugin/test_arista_l3_driver.py b/networking_arista/tests/unit/l3Plugin/test_arista_l3_driver.py index 2a8fd47d..36b9d0ea 100644 --- a/networking_arista/tests/unit/l3Plugin/test_arista_l3_driver.py +++ b/networking_arista/tests/unit/l3Plugin/test_arista_l3_driver.py @@ -26,10 +26,10 @@ def setup_arista_config(value='', vrf=False, mlag=False): cfg.CONF.set_override('primary_l3_host', value, "l3_arista") cfg.CONF.set_override('primary_l3_host_username', value, "l3_arista") if vrf: - cfg.CONF.set_override('use_vrf', value, "l3_arista") + cfg.CONF.set_override('use_vrf', vrf, "l3_arista") if mlag: cfg.CONF.set_override('secondary_l3_host', value, "l3_arista") - cfg.CONF.set_override('mlag_config', value, "l3_arista") + cfg.CONF.set_override('mlag_config', mlag, "l3_arista") class AristaL3DriverTestCasesDefaultVrf(base.BaseTestCase):