summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-09-27 02:59:29 -0500
committerytti <saku@ytti.fi>2015-09-27 02:59:29 -0500
commit073a1bb7e569ed07214249a6b200d310be29709f (patch)
tree2dacb5181161470fe31531466415e3ee41f5a2fb /lib
parentbdbb375d14525f706639e75664c1ceed9024f370 (diff)
parentea8afd886d0ace6acc7debc3b782314cbf0f9ef1 (diff)
Merge pull request #200 from nickhilliard/br-fix-asa-cmd-order
move "show inventory" up
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/asa.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/oxidized/model/asa.rb b/lib/oxidized/model/asa.rb
index d257e9e..547afd7 100644
--- a/lib/oxidized/model/asa.rb
+++ b/lib/oxidized/model/asa.rb
@@ -23,16 +23,16 @@ class ASA < Oxidized::Model
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