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

Patch for errors warning "global name 'get_mod_subattr' is not defined

Ticket: CM-8248
Reviewed By: Trivial
Testing Done: None

Fix for

On bootup and during service network restart these warning messages are thrown out.
root@cel-ken-01:/var/log# service networking restart
[....] Reconfiguring network interfaces...warning: global name 'get_mod_subattr' is not defined
warning: global name 'get_mod_subattr' is not defined
warning: global name 'get_mod_subattr' is not defined

warning messages in ifupdown2
This commit is contained in:
Sam Tannous
2015-11-16 22:22:44 -05:00
parent 267c4cba58
commit 54713cee98

View File

@@ -263,7 +263,7 @@ class mstpctl(moduleBase):
self.get_mod_subattr(attrname,'default'))):
# this happens when customers remove an attribute
# and expect the default to be restored with ifreload.
v = get_mod_subattr(attrname,'default')
v = self.get_mod_subattr(attrname,'default')
elif not v:
continue