From 5b8550dc18378573f6b316d7ff4bd43a9061e668 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 5 Jan 2022 15:10:50 -0600 Subject: config: T3785: drop restriction to ascii in decode Following the update to vyos1x-config, commit 64263617, UTF-8 characters are supported within the config file, hence in the output of showConfig. --- python/vyos/configsource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/vyos/configsource.py b/python/vyos/configsource.py index a0f6a46b5..510b5b65a 100644 --- a/python/vyos/configsource.py +++ b/python/vyos/configsource.py @@ -162,7 +162,7 @@ class ConfigSourceSession(ConfigSource): if p.returncode != 0: raise VyOSError() else: - return out.decode('ascii', 'ignore') + return out.decode() def set_level(self, path): """ -- cgit v1.2.3