diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-03 12:23:36 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-03 12:24:14 +0200 |
commit | 50ea3e0576dd18d98d7696fcbf0714b6fe86672d (patch) | |
tree | 532f9dc88c5487d2e509a8c88f60d9e059ee4360 /python/vyos | |
parent | 3b5ce92db3a77cc29051a26ef12cad1ed52f7e69 (diff) | |
download | vyos-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.py | 6 |
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): |