diff options
author | Albert Martinez <albert.martinez.illan@gmail.com> | 2016-05-10 18:11:37 +0200 |
---|---|---|
committer | Albert Martinez <albert.martinez.illan@gmail.com> | 2016-05-10 18:11:37 +0200 |
commit | f85a50afe8a2836267e9173bb0d4505acef3442f (patch) | |
tree | bbb1e74a4b2517e18df9a20f9768c3b82d3b8f79 /lib | |
parent | e56d23e886f96689ad4089f00667acb837ce05f9 (diff) |
Update comware.rb
issue #415 skip rogue ^M to comware based devices
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/comware.rb | 2 |
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 |