summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorWild Kat <wk@futureinquestion.net>2018-04-27 15:07:44 +0200
committerWild Kat <wk@futureinquestion.net>2018-04-27 15:07:44 +0200
commit36758bb67d28e49f66608ce54fd1e9e57f2267da (patch)
tree4b7572923c88f9efc5d6f81f68b8e3e00f0db8b7 /lib/oxidized/model
parent1311573a1adff6edf2c0b3cfdb05ca83d6c46e73 (diff)
scrub generated time from xos.rb configs (closes #629)
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/xos.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/model/xos.rb b/lib/oxidized/model/xos.rb
index e862596..5ce8017 100644
--- a/lib/oxidized/model/xos.rb
+++ b/lib/oxidized/model/xos.rb
@@ -26,7 +26,10 @@ class XOS < Oxidized::Model
comment cfg.each_line.reject { |line| line.match /Time:/ or line.match /boot/i }.join
end
- cmd 'show configuration'
+ cmd 'show configuration' do |cfg|
+ cfg = cfg.each_line.reject { |line| line.match /^#(\s[\w]+\s)(Configuration generated)/ }.join
+ cfg
+ end
cmd 'show policy detail' do |cfg|
comment cfg