]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
lb: Correct String formatting to get rid of logged ValueError
authorAndreas Scheuring <andreas.scheuring@de.ibm.com>
Mon, 7 Dec 2015 12:42:21 +0000 (13:42 +0100)
committerMark McClain <mark@mcclain.xyz>
Tue, 8 Dec 2015 17:38:20 +0000 (12:38 -0500)
The following error is caused by a missing String formatting in the
linuxbridge agent:
"ValueError: unsupported format character 'a' (0x61) at index 90
Logged from file linuxbridge_neutron_agent.py, line 447"

In addition a duplicated word in the log text has been fixed.

Change-Id: I587f1165fc7084dc9c4806149b65652f6e27b14e

neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py

index 7070ec0a3e1623c1062a9712c0f96fc100def7de..00fc6ac3f4fae921cd89e163efd5ea230870b56c 100644 (file)
@@ -442,9 +442,8 @@ class LinuxBridgeManager(object):
                     'device_owner': device_owner,
                     'bridge_name': bridge_name}
             LOG.debug("Skip adding device %(tap_device_name)s to "
-                      "%(bridge_name)s. It is owned by %(device_owner) and "
-                      "thus added elsewhere."
-                      "elsewhere", data)
+                      "%(bridge_name)s. It is owned by %(device_owner)s and "
+                      "thus added elsewhere.", data)
         return True
 
     def ensure_tap_mtu(self, tap_dev_name, phy_dev_name):