From 17278368afb262d1c26850481f11cad001962397 Mon Sep 17 00:00:00 2001 From: Gary Kotton Date: Sun, 17 Jul 2016 17:04:18 -0700 Subject: [PATCH] Use DEVICE_OWNER_COMPUTE_PREFIX from neutron-lib Remove the warnings: neutron/tests/unit/db/test_ipam_pluggable_backend.py:79: DeprecationWarning: DEVICE_OWNER_COMPUTE_PREFIX in version 'mitaka' and will be removed in version 'newton': moved to neutron_lib.constants" TrivialFix Change-Id: I0a61ebb0d0c09464c264ffd51f054232c5e279b9 --- neutron/tests/unit/db/test_ipam_pluggable_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/unit/db/test_ipam_pluggable_backend.py b/neutron/tests/unit/db/test_ipam_pluggable_backend.py index 8254bdb7289..abd0f7d1438 100644 --- a/neutron/tests/unit/db/test_ipam_pluggable_backend.py +++ b/neutron/tests/unit/db/test_ipam_pluggable_backend.py @@ -76,7 +76,7 @@ class TestDbBasePluginIpam(test_db_base.NeutronDbPluginV2TestCase): 'subnet': mock.Mock(), 'subnets': mock.Mock(), 'port': { - 'device_owner': n_const.DEVICE_OWNER_COMPUTE_PREFIX + 'None' + 'device_owner': constants.DEVICE_OWNER_COMPUTE_PREFIX + 'None' }, 'subnet_request': ipam_req.SpecificSubnetRequest( self.tenant_id,