From 54713cee981d76efa8dfafff282241798e0456eb Mon Sep 17 00:00:00 2001 From: Sam Tannous Date: Mon, 16 Nov 2015 22:22:44 -0500 Subject: [PATCH] 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 --- addons/mstpctl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mstpctl.py b/addons/mstpctl.py index 52fcba1..a632b0c 100644 --- a/addons/mstpctl.py +++ b/addons/mstpctl.py @@ -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