From 9592f2c2e560fbc6bb03379443069fd5520b4452 Mon Sep 17 00:00:00 2001 From: Travis Beaty Date: Sat, 13 Jun 2026 00:00:49 +0000 Subject: [PATCH 1/2] add 'cmd :all' block to strip carriage returns and command echo. Without 'cmd :all', carriage returns were not stripped from output and command echo/prompts were leaking into saved configs. Adding the standard cmd :all block resolves both issues. --- lib/oxidized/model/fsos.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/oxidized/model/fsos.rb b/lib/oxidized/model/fsos.rb index d05401bdd..811007d0d 100644 --- a/lib/oxidized/model/fsos.rb +++ b/lib/oxidized/model/fsos.rb @@ -10,6 +10,11 @@ class FSOS < Oxidized::Model data.sub re, '' end + cmd :all do |cfg| + cfg = cfg.delete("\r") + cfg.cut_both + end + cmd :secret do |cfg| cfg.gsub! /(secret \w+) (\S+).*/, '\\1