summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/fortios.rb
diff options
context:
space:
mode:
authorroot <oh@onsteroids.net>2017-02-06 20:20:46 +0100
committerroot <oh@onsteroids.net>2017-02-06 20:20:46 +0100
commita9587eca976763d82e588a3887805d1cb3e2e27f (patch)
tree244578cd03fa27b5f7fa0e22b66d7be3a3dde745 /lib/oxidized/model/fortios.rb
parent86830621575d605ed2515e8c1df1fc0c6a87ab5b (diff)
changed "diagnose autoupdate version" behaviour, since with every update of signatures the config version is changed
Diffstat (limited to 'lib/oxidized/model/fortios.rb')
-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