summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/awplus.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/awplus.rb')
-rw-r--r--lib/oxidized/model/awplus.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/awplus.rb b/lib/oxidized/model/awplus.rb
index 7c88d60..cdbafa7 100644
--- a/lib/oxidized/model/awplus.rb
+++ b/lib/oxidized/model/awplus.rb
@@ -16,7 +16,7 @@ class AWPlus < Oxidized::Model
cfg.gsub! /\e\[K/, '' # example how to handle pager - cleareol EL0
cfg.gsub! /\e\[7m\e\[m/, '' # example how to handle pager - Reverse SGR7
cfg.gsub! /\r/, '' # Filters rogue ^M - see issue #415
- cfg.each_line.to_a[1..-2].join
+ cfg.cut_both
end
# Remove passwords from config file.