summaryrefslogtreecommitdiffstats
path: root/networking-odl/networking_odl/common/lightweight_testing.py
diff options
context:
space:
mode:
authorWojciech Dec <wdec@cisco.com>2016-08-17 13:14:23 +0200
committerWojciech Dec <wdec@cisco.com>2016-08-17 13:14:23 +0200
commit4979a23b8b2c0094ced98cf05eebb692d6609937 (patch)
treec49ceeb5b127fdb0e10c0f5ac0516be96cbd31a9 /networking-odl/networking_odl/common/lightweight_testing.py
parentc3b2c2a9a22bac5cf17813c589444d3abebaa23b (diff)
Correcting networking-odl to mitaka/stable + app topology patch
Change-Id: Iddcd8dda2d49fcdd8e0f37a1d052a6fa8a24b035 Signed-off-by: Wojciech Dec <wdec@cisco.com>
Diffstat (limited to 'networking-odl/networking_odl/common/lightweight_testing.py')
-rw-r--r--networking-odl/networking_odl/common/lightweight_testing.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking-odl/networking_odl/common/lightweight_testing.py b/networking-odl/networking_odl/common/lightweight_testing.py
index 3d0cf2e..3f9c2bc 100644
--- a/networking-odl/networking_odl/common/lightweight_testing.py
+++ b/networking-odl/networking_odl/common/lightweight_testing.py
@@ -20,7 +20,6 @@ import six
from oslo_log import log as logging
from oslo_serialization import jsonutils
-from networking_odl._i18n import _
from networking_odl.common import client
from networking_odl.common import constants as odl_const
@@ -69,7 +68,7 @@ class OpenDaylightLwtClient(client.OpenDaylightRestClient):
"""No ID in URL, elements in resource_list must have ID"""
if resource_list is None:
- raise ValueError(_("resource_list can not be None"))
+ raise ValueError("resource_list can not be None")
for resource in resource_list:
if resource['id'] in resource_dict:
@@ -88,7 +87,7 @@ class OpenDaylightLwtClient(client.OpenDaylightRestClient):
resource_id = cls._get_resource_id(urlpath)
if resource_list is None:
- raise ValueError(_("resource_list can not be None"))
+ raise ValueError("resource_list can not be None")
if resource_id and len(resource_list) != 1:
LOG.debug("Updating %s with multiple resources", urlpath)