Skip to content

Commit

Permalink
Merge pull request #3248 from dhooper6430/patch-2
Browse files Browse the repository at this point in the history
Update edgecos.rb
  • Loading branch information
robertcheramy authored Oct 2, 2024
2 parents b253cd6 + 892a76a commit d3fa27b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- saos: add inventory and software status collection (@grbeneke)
- container-image: update to phusion/baseimage:noble-1.0.0 and include security upgrades at build time (@robertcheramy)
- container-image: use ubuntu-packages instead of gems in order to reduce container image size (@robertcheramy)
- edgecos.rb: hide temperature and fan speed (@dhooper6430)

### Fixed
- fixed prompt for vyos/vyatta to allow logins with non-priviliged accounts. Fixes #3111 (@h-lopez)
Expand Down
3 changes: 2 additions & 1 deletion lib/oxidized/model/edgecos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ class EdgeCOS < Oxidized::Model

cmd 'show system' do |cfg|
cfg.gsub! /^.*\sUp Time\s*:.*\n/i, ''
cfg.gsub! /^(.*\sTemperature \d*\s*:\s*).*/i, '\\1<removed>'
cfg.gsub! /(\sTemperature \d*:)\s*\d+ degrees/, '\\1 <temperature values hidden>'
cfg.gsub! /^!?\s*Fan \d+ speed:\s+\d+ rpm\s+Fan \d+ speed:\s+\d+ rpm\s+Fan \d+ speed:\s+\d+ rpm$/, '<fan speeds hidden>'
comment cfg
end

Expand Down

0 comments on commit d3fa27b

Please sign in to comment.