diff options
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): |