Fix logging calls
This patch fixes the following items. - Missing a marker function _LI - String interpolation - A typo (ENsuring -> Ensuring) * Guidelines for Use In OpenStack — oslo.i18n http://docs.openstack.org/developer/oslo.i18n/guidelines.html Change-Id: I4cc5781100fd2d2be3dd5c44c789396f3fdbd649 Closes-Bug: #1596829
This commit is contained in:
parent
bdaa83f9f8
commit
ff28181fdd
|
@ -43,8 +43,9 @@ def initialize(reset=False):
|
||||||
for plugin_name in _EXT_MANAGER.names():
|
for plugin_name in _EXT_MANAGER.names():
|
||||||
cls = _EXT_MANAGER[plugin_name].plugin
|
cls = _EXT_MANAGER[plugin_name].plugin
|
||||||
obj = cls.load(plugin_name)
|
obj = cls.load(plugin_name)
|
||||||
LOG.info("Loaded VIF plugin class '%s' with name '%s'",
|
LOG.info(_LI("Loaded VIF plugin class '%(cls)s' "
|
||||||
cls, plugin_name)
|
"with name '%(plugin_name)s'"),
|
||||||
|
{'cls': cls, 'plugin_name': plugin_name})
|
||||||
_EXT_MANAGER[plugin_name].obj = obj
|
_EXT_MANAGER[plugin_name].obj = obj
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ def _ensure_bridge_privileged(bridge, interface, net_attrs, gateway,
|
||||||
def _ensure_bridge_filtering(bridge, gateway):
|
def _ensure_bridge_filtering(bridge, gateway):
|
||||||
# This method leaves privsep usage to iptables manager
|
# This method leaves privsep usage to iptables manager
|
||||||
# Don't forward traffic unless we were told to be a gateway
|
# Don't forward traffic unless we were told to be a gateway
|
||||||
LOG.debug("ENsuring filtering %s to %s" % (bridge, gateway))
|
LOG.debug("Ensuring filtering %s to %s", bridge, gateway)
|
||||||
global _IPTABLES_MANAGER
|
global _IPTABLES_MANAGER
|
||||||
ipv4_filter = _IPTABLES_MANAGER.ipv4['filter']
|
ipv4_filter = _IPTABLES_MANAGER.ipv4['filter']
|
||||||
if gateway:
|
if gateway:
|
||||||
|
|
Loading…
Reference in New Issue