1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

python3: logging: the 'warn' method is deprecated, use warning instead

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
Julien Fortin
2019-12-09 22:31:46 +01:00
parent c8eec61e41
commit c46af1c992
18 changed files with 73 additions and 73 deletions

View File

@@ -443,7 +443,7 @@ class mstpctl(Addon, moduleBase):
self.mstpctlcmd.set_bridge_attr(ifaceobj.name,
dstattrname, config_val, check)
except Exception as e:
self.logger.warn('%s' %str(e))
self.logger.warning('%s' %str(e))
pass
if self.cache.bridge_is_vlan_aware(ifaceobj.name):
@@ -1080,7 +1080,7 @@ class mstpctl(Addon, moduleBase):
def _query_running_bridge_port(self, ifaceobjrunning):
bridgename = self.cache.get_master(ifaceobjrunning.name)
if not bridgename:
self.logger.warn('%s: unable to determine bridgename'
self.logger.warning('%s: unable to determine bridgename'
%ifaceobjrunning.name)
return
if self.sysfs.bridge_get_stp(bridgename) == 'no':