summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-03 12:23:36 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-03 12:24:14 +0200
commit50ea3e0576dd18d98d7696fcbf0714b6fe86672d (patch)
tree532f9dc88c5487d2e509a8c88f60d9e059ee4360 /python/vyos
parent3b5ce92db3a77cc29051a26ef12cad1ed52f7e69 (diff)
downloadvyos-1x-50ea3e0576dd18d98d7696fcbf0714b6fe86672d.tar.gz
vyos-1x-50ea3e0576dd18d98d7696fcbf0714b6fe86672d.zip
Python/ifconfig: T1557: bonding: bugfix read_sysfs when debug is enabled
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/ifconfig.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index c69beb31a..217f898fa 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -122,12 +122,12 @@ class Interface:
"""
Provide a single primitive w/ error checking for reading from sysfs.
"""
- var = None
+ value = None
with open(filename, 'r') as f:
- var = f.read().rstrip('\n')
+ value = f.read().rstrip('\n')
self._debug_msg('read "{}" <- "{}"'.format(value, filename))
- return var
+ return value
def _write_sysfs(self, filename, value):