summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/comware.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/comware.rb')
-rw-r--r--lib/oxidized/model/comware.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/comware.rb b/lib/oxidized/model/comware.rb
index 9b36e8b..27b70ae 100644
--- a/lib/oxidized/model/comware.rb
+++ b/lib/oxidized/model/comware.rb
@@ -13,6 +13,8 @@ class Comware < Oxidized::Model
cmd :all do |cfg|
#cfg.gsub! /^.*\e\[42D/, '' # example how to handle pager
+ #skip rogue ^M
+ cfg = cfg.gsub /\r/, ''
cfg.each_line.to_a[1..-2].join
end