diff --git a/CHANGELOG.md b/CHANGELOG.md index 0887f030d..982ec4d46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/oxidized/model/edgecos.rb b/lib/oxidized/model/edgecos.rb index 43eb6cd8f..5ec64ae8c 100644 --- a/lib/oxidized/model/edgecos.rb +++ b/lib/oxidized/model/edgecos.rb @@ -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' + cfg.gsub! /(\sTemperature \d*:)\s*\d+ degrees/, '\\1