summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-15 08:04:34 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-15 08:04:34 +0200
commit30030cc0cc808b9a1c942e89e8698ee2b522b87f (patch)
treec0ab797585b2a29acec93f9d69d14a95a47a96b1 /src
parent89a4124bf68a1a361a32a6cb1f07d06ff2e160fa (diff)
downloadvyos-1x-30030cc0cc808b9a1c942e89e8698ee2b522b87f.tar.gz
vyos-1x-30030cc0cc808b9a1c942e89e8698ee2b522b87f.zip
Do not try to decode data read from /sys files in the show version script,
it's already an str.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op-mode/vyos-show-version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op-mode/vyos-show-version.py b/src/op-mode/vyos-show-version.py
index 0990dd648..ce3b3b54f 100755
--- a/src/op-mode/vyos-show-version.py
+++ b/src/op-mode/vyos-show-version.py
@@ -41,7 +41,7 @@ def read_file(name):
try:
with open (name, "r") as f:
data = f.read()
- return data.decode().strip()
+ return data.strip()
except:
# This works since we only read /sys/class/* stuff
# with this function