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
This commit is contained in:
parent
0b26db7865
commit
ee96b06a7b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user