summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-17 09:34:09 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-17 09:34:09 +0100
commit7a75d6e938253ba61979e794472f822e855976d0 (patch)
tree9545926e8bc597bfffee1c1a511a21884ac20a4a /python
parent75bc70d1b31593bd8317cb002da6e315d9dc549a (diff)
downloadvyos-1x-7a75d6e938253ba61979e794472f822e855976d0.tar.gz
vyos-1x-7a75d6e938253ba61979e794472f822e855976d0.zip
util: T2226: restore/fix ifconfig debuging
Diffstat (limited to 'python')
-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)