summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-09-27 02:59:17 -0500
committerytti <saku@ytti.fi>2015-09-27 02:59:17 -0500
commitbdbb375d14525f706639e75664c1ceed9024f370 (patch)
tree568994e348790b325de1b3e677d31b62be9f8a6c
parent3bf7a78e756bc1ac58d52be31be07fad57f233c0 (diff)
parentb39e3ff9bf9cf53a82671c06df0e814078c69035 (diff)
Merge pull request #199 from nickhilliard/br-fix-ironware-show-module
some ironware devices are fixed config => no modules
-rw-r--r--lib/oxidized/model/ironware.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/ironware.rb b/lib/oxidized/model/ironware.rb
index d248e1a..c7fbeee 100644
--- a/lib/oxidized/model/ironware.rb
+++ b/lib/oxidized/model/ironware.rb
@@ -50,6 +50,7 @@ class IronWare < Oxidized::Model
end
cmd 'show module' do |cfg|
+ cfg.gsub! /^((Invalid input)|(Type \?)).*$/, '' # some ironware devices are fixed config
comment cfg
end