summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-02-06 21:28:22 +0200
committerGitHub <noreply@github.com>2017-02-06 21:28:22 +0200
commit2920c67dc3555c70c078bf4086b2e46d9f9d8299 (patch)
tree244578cd03fa27b5f7fa0e22b66d7be3a3dde745 /lib/oxidized/model
parent86830621575d605ed2515e8c1df1fc0c6a87ab5b (diff)
parenta9587eca976763d82e588a3887805d1cb3e2e27f (diff)
Merge pull request #700 from mediumo/master
changed "diagnose autoupdate version" behaviour, since with every upd…
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/fortios.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb
index fa8fd33..cdb50d5 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -34,7 +34,7 @@ class FortiOS < Oxidized::Model
end
cfg << cmd('diagnose autoupdate version') do |cfg|
- comment cfg
+ comment cfg.each_line.reject { |line| line.match /Last Update|Result/ }.join
end
cfg << cmd('end') if @vdom_enabled