lib/oxidized/model/asa.rb in oxidized-0.8.1 vs lib/oxidized/model/asa.rb in oxidized-0.9.0
- old
+ new
@@ -21,17 +21,17 @@
cfg = cfg.each_line.select { |line| not line.match /\s+up\s+\d+\s+/ }
cfg = cfg.join
comment cfg
end
+ cmd 'show inventory' do |cfg|
+ comment cfg
+ end
+
cmd 'more system:running-config' do |cfg|
cfg = cfg.each_line.to_a[3..-1].join
cfg.gsub! /^: [^\n]*\n/, ''
cfg
- end
-
- cmd 'show inventory' do |cfg|
- comment cfg
end
cfg :ssh do
if vars :enable
post_login do