summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-17 16:14:52 +0200
committerGitHub <noreply@github.com>2020-04-17 16:14:52 +0200
commit3b3b33e4ffe46747014342238807bfdacbe74db4 (patch)
tree9545926e8bc597bfffee1c1a511a21884ac20a4a
parent75bc70d1b31593bd8317cb002da6e315d9dc549a (diff)
parent7a75d6e938253ba61979e794472f822e855976d0 (diff)
downloadvyos-1x-3b3b33e4ffe46747014342238807bfdacbe74db4.tar.gz
vyos-1x-3b3b33e4ffe46747014342238807bfdacbe74db4.zip
Merge pull request #351 from thomas-mangin/T2226-ifconfig-debug
util: T2226: restore/fix ifconfig debuging
-rw-r--r--python/vyos/ifconfig/control.py4
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)