From ee96b06a7b4451da7c4a6959886ab002821012d7 Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Wed, 30 Jul 2014 10:42:14 +0200 Subject: [PATCH] Use correct section for log message if interface_driver import fails If import of interface_driver in namespace_driver fails then message for logger raises exception because of taking interface_driver from haproxy section while actual interface_driver is in default section. Closes-Bug: #1350320 Change-Id: Ic1e73c0cdccb2fff02f2adfbad677503c29ba88a --- .../services/loadbalancer/drivers/haproxy/namespace_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py b/neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py index 967c65e7fb..fc6d1011db 100644 --- a/neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py +++ b/neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py @@ -73,7 +73,7 @@ class HaproxyNSDriver(agent_device_driver.AgentDeviceDriver): except ImportError: with excutils.save_and_reraise_exception(): msg = (_('Error importing interface driver: %s') - % conf.haproxy.interface_driver) + % conf.interface_driver) LOG.error(msg) self.vif_driver = vif_driver