diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/ifconfig/control.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/control.py b/python/vyos/ifconfig/control.py index 7bb63beed..0958be642 100644 --- a/python/vyos/ifconfig/control.py +++ b/python/vyos/ifconfig/control.py @@ -35,8 +35,8 @@ class Control(Section): # if debug is not explicitely disabled the the config, enable it self.debug = '' - if kargs.get('debug', True): - self.debug = debug.enabled('ifconfig') + if kargs.get('debug', True) and debug.enabled('ifconfig'): + self.debug = 'ifconfig' def _debug_msg (self, message): return debug.message(message, self.debug) |