lib/oxidized/model/awplus.rb in oxidized-0.24.0 vs lib/oxidized/model/awplus.rb in oxidized-0.25.0
- old
+ new
@@ -14,10 +14,10 @@
# Removes gibberish pager output e.g. VT100 escape codes
cmd :all do |cfg|
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.
# Add vars "remove_secret: true" to global oxidized config file to enable.