diff options
author | ytti <saku@ytti.fi> | 2016-05-10 19:18:22 +0300 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2016-05-10 19:18:22 +0300 |
commit | 4848ddb3237bcd6f01cefcda04cddfa3be2e328f (patch) | |
tree | bbb1e74a4b2517e18df9a20f9768c3b82d3b8f79 /lib/oxidized/model/comware.rb | |
parent | e56d23e886f96689ad4089f00667acb837ce05f9 (diff) | |
parent | f85a50afe8a2836267e9173bb0d4505acef3442f (diff) |
Merge pull request #417 from amarti2038/patch-1
Update comware.rb
Diffstat (limited to 'lib/oxidized/model/comware.rb')
-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 |