summaryrefslogtreecommitdiff
path: root/plugins/cliconf/vyos.py
diff options
context:
space:
mode:
authorRuben van Dijk <15885455+RubenNL@users.noreply.github.com>2025-06-09 13:18:39 +0200
committerGitHub <noreply@github.com>2025-06-09 12:18:39 +0100
commitf02bc8b2af6de47962e3670e719d756df0cba029 (patch)
tree1e06fed4c47ad5b4731e9580847d5e05585a3222 /plugins/cliconf/vyos.py
parent06bee69e0561f681a69037ce7aebe21dca25959b (diff)
downloadvyos.vyos-f02bc8b2af6de47962e3670e719d756df0cba029.tar.gz
vyos.vyos-f02bc8b2af6de47962e3670e719d756df0cba029.zip
T7320: Fixed compatibility with Paramiko by removing all "null" bytes. (#409)
Fixes issue found in this comment: https://github.com/vyos/vyos.vyos/pull/407#issuecomment-2774775677 Co-authored-by: omnom62 <75066712+omnom62@users.noreply.github.com>
Diffstat (limited to 'plugins/cliconf/vyos.py')
-rw-r--r--plugins/cliconf/vyos.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/cliconf/vyos.py b/plugins/cliconf/vyos.py
index 5beffaa1..8cbafb1d 100644
--- a/plugins/cliconf/vyos.py
+++ b/plugins/cliconf/vyos.py
@@ -138,6 +138,7 @@ class Cliconf(CliconfBase):
requests.append(cmd["command"])
out = self.get("compare")
out = to_text(out, errors="surrogate_or_strict")
+ out = out.replace("\u0000", "")
diff_config = out if not out.startswith("No changes") else None
if diff_config: