summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-06 20:34:16 +0200
committerytti <saku@ytti.fi>2016-02-06 20:34:16 +0200
commit552f16628cde6a9a66f11e3972122435077ff445 (patch)
tree20a3c8bd61cd95cfc6c9303ea6cfb58f8a446f63
parent3e28af7dcbfafbd5cf1f7e2cbfae984176113a3b (diff)
parent7376f1c81de3aefd5feee5937ebb68ba202cdbc8 (diff)
Merge pull request #309 from natm/mrv_ignore_dates
MRV master-os: Ignore configuration timestamps
-rw-r--r--lib/oxidized/model/masteros.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/masteros.rb b/lib/oxidized/model/masteros.rb
index 3f5a2fc..d48fe27 100644
--- a/lib/oxidized/model/masteros.rb
+++ b/lib/oxidized/model/masteros.rb
@@ -12,6 +12,7 @@ comment '!'
cmd :all do |cfg|
cfg.each_line.to_a[1..-2].join
+ cfg.gsub! /^(! Configuration ).*/, '!'
end
cmd 'show inventory' do |cfg|
@@ -43,4 +44,4 @@ comment '!'
pre_logout 'exit'
end
-end \ No newline at end of file
+end