Skip to content

Commit

Permalink
Merge pull request #2986 from freddy36/patch-7
Browse files Browse the repository at this point in the history
edgecos: improve system temperature removal
  • Loading branch information
robertcheramy authored Jan 15, 2024
2 parents 2654330 + 4bf8d7e commit 4ce7d16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- Added support for Nokia SAR 7705 HMC in SROS model (@schouwenburg)
- fortios: only perform a "show" instead of a "show full-configuration" when retrieving configs from fortios. fixes timeouts and avoids extraneous defaulted config information. (@jforeman)
- opengear: support newer Opengear CM* and OM* models (@matej_v)
- edgecos: improve system temperature removal (@freddy36)

## Fixed
- fixed empty lines for ZyXEL GS1900 switches (@jluebbe)
Expand Down
2 changes: 1 addition & 1 deletion lib/oxidized/model/edgecos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class EdgeCOS < Oxidized::Model

cmd 'show system' do |cfg|
cfg.gsub! /^.*\sUp Time\s*:.*\n/i, ''
cfg.gsub! /^(.*\sTemperature \d*:).*\n/i, '\\1 <removed>'
cfg.gsub! /^(.*\sTemperature \d*\s*:\s*).*/i, '\\1<removed>'
comment cfg
end

Expand Down

0 comments on commit 4ce7d16

Please sign in to comment.