From 244da328e258921dd8d5e0bd773e622e252d8580 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 8 Sep 2017 03:12:57 +0200 Subject: Automatically decode the output of cli-shell-api as ASCII to avoid having to decode it anywhere else. --- python/vyos/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3