From 50ea3e0576dd18d98d7696fcbf0714b6fe86672d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 3 Sep 2019 12:23:36 +0200 Subject: Python/ifconfig: T1557: bonding: bugfix read_sysfs when debug is enabled --- python/vyos/ifconfig.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') 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): -- cgit v1.2.3