diff options
author | Daniil Baturin <daniil@baturin.org> | 2017-09-08 03:12:57 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2017-09-08 03:12:57 +0200 |
commit | 244da328e258921dd8d5e0bd773e622e252d8580 (patch) | |
tree | 2055a4e3724e33955986666b7fb1282849175728 | |
parent | 8964d2aaf758962704214fb4325b45c0c11134fa (diff) | |
download | vyos-1x-244da328e258921dd8d5e0bd773e622e252d8580.tar.gz vyos-1x-244da328e258921dd8d5e0bd773e622e252d8580.zip |
Automatically decode the output of cli-shell-api as ASCII
to avoid having to decode it anywhere else.
-rw-r--r-- | python/vyos/config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/config.py b/python/vyos/config.py index a142d31cb..85dd49e68 100644 --- a/python/vyos/config.py +++ b/python/vyos/config.py @@ -42,7 +42,7 @@ class Config(object): if p.returncode != 0: raise VyOSError() else: - return out + return out.decode('ascii') def set_level(self, path): # Make sure there's always a space between default path (level) |