summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/aosw.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-01-26 11:21:23 +0200
committerGitHub <noreply@github.com>2017-01-26 11:21:23 +0200
commit9df07679197247904c7780de025bae52b234f81d (patch)
tree6afc1eb5006af2c9f96d82f010c873dd97215378 /lib/oxidized/model/aosw.rb
parent2a69179c7765455ad9b468f33c8df78188e7dec5 (diff)
parenta2c6e49bfd5db6225f4b6f2321f89ac9ad9332f9 (diff)
Merge pull request #675 from vppencilsharpener/aoswCleanOutput
Don't show error is unsupported
Diffstat (limited to 'lib/oxidized/model/aosw.rb')
-rw-r--r--lib/oxidized/model/aosw.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/model/aosw.rb b/lib/oxidized/model/aosw.rb
index 1995292..adf481b 100644
--- a/lib/oxidized/model/aosw.rb
+++ b/lib/oxidized/model/aosw.rb
@@ -36,10 +36,12 @@ class AOSW < Oxidized::Model
end
cmd 'show slots' do |cfg|
+ cfg = "" if cfg.match /Invalid input detected at '\^' marker/ #Don't show for unsupported devices
rstrip_cfg comment cfg
end
cmd 'show license' do |cfg|
+ cfg = "" if cfg.match /Invalid input detected at '\^' marker/ #Don't show for unsupported devices
rstrip_cfg comment cfg
end