summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-05-16 15:46:10 +0300
committerGitHub <noreply@github.com>2017-05-16 15:46:10 +0300
commitbed774e06862876e666719309f67bf964c692abd (patch)
treedfb82c50d82d62ce72cb112807fb7b810e91aa64
parent3369ea3903c9763de4bbc800acee424d2d069f38 (diff)
parent1da216558e9392d3465dba2e6bb79d0221e43c03 (diff)
Merge pull request #853 from bheum/fortios.rb-FDS-Address
fortios.rb fortios_autoupdate remove FDS Address
-rw-r--r--lib/oxidized/model/fortios.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/fortios.rb b/lib/oxidized/model/fortios.rb
index cdaa282..0249933 100644
--- a/lib/oxidized/model/fortios.rb
+++ b/lib/oxidized/model/fortios.rb
@@ -38,6 +38,7 @@ class FortiOS < Oxidized::Model
#do not include if variable "show_autoupdate" is set to false
if defined?(vars(:fortios_autoupdate)).nil? || vars(:fortios_autoupdate)
cfg << cmd('diagnose autoupdate version') do |cfg|
+ cfg.gsub! /(FDS Address\n---------\n).*/, '\\1IP Address removed'
comment cfg.each_line.reject { |line| line.match /Last Update|Result/ }.join
end
end