diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-17 16:14:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-17 16:14:52 +0200 |
commit | 3b3b33e4ffe46747014342238807bfdacbe74db4 (patch) | |
tree | 9545926e8bc597bfffee1c1a511a21884ac20a4a /python/vyos/ifconfig | |
parent | 75bc70d1b31593bd8317cb002da6e315d9dc549a (diff) | |
parent | 7a75d6e938253ba61979e794472f822e855976d0 (diff) | |
download | vyos-1x-3b3b33e4ffe46747014342238807bfdacbe74db4.tar.gz vyos-1x-3b3b33e4ffe46747014342238807bfdacbe74db4.zip |
Merge pull request #351 from thomas-mangin/T2226-ifconfig-debug
util: T2226: restore/fix ifconfig debuging
Diffstat (limited to 'python/vyos/ifconfig')
-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) |