lib/oxidized/model/aosw.rb in oxidized-0.27.0 vs lib/oxidized/model/aosw.rb in oxidized-0.28.0

- old
+ new

@@ -56,9 +56,14 @@ cmd 'show license' do |cfg| cfg = "" if cfg =~ /(Invalid input detected at '\^' marker|Parse error)/ # Don't show for unsupported devices (IAP and MAS) rstrip_cfg comment cfg end + cmd 'show license passphrase' do |cfg| + cfg = "" if cfg.match /(Invalid input detected at '\^' marker|Parse error)/ # Don't show for unsupported devices (IAP and MAS) + rstrip_cfg comment cfg + end + cmd 'show running-config' do |cfg| out = [] cfg.each_line do |line| next if line =~ /^controller config \d+$/ next if line =~ /^Building Configuration/