diff options
author | ytti <saku@ytti.fi> | 2017-02-04 02:10:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-04 02:10:22 +0200 |
commit | 66911c18259e17e6381517b9a495b61423ed44ad (patch) | |
tree | c5ff03bb0cadf4c80b227dbf52f8d5c7c47543d1 /lib | |
parent | 408e192999e9c414da35a23de199de99c07e7a6a (diff) | |
parent | f553488701e2bfd08367f53e51f09d480ab12cbd (diff) |
Merge pull request #692 from kgasso/master
Updating fabricos.rb to ignore dynamic fields
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/fabricos.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/fabricos.rb b/lib/oxidized/model/fabricos.rb index 7ab9fd5..e6d921e 100644 --- a/lib/oxidized/model/fabricos.rb +++ b/lib/oxidized/model/fabricos.rb @@ -7,10 +7,11 @@ class FabricOS < Oxidized::Model comment '# ' cmd 'chassisShow' do |cfg| - comment cfg + comment cfg.each_line.reject { |line| line.match /Time Awake:/ or line.match /Power Usage \(Watts\):/ or line.match /Time Alive:/ or line.match /Update:/ }.join end cmd 'configShow -all' do |cfg| + cfg = cfg.each_line.reject { |line| line.match /date = /}.join cfg end |