summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/planet.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-07-01 11:26:29 +0300
committerGitHub <noreply@github.com>2017-07-01 11:26:29 +0300
commitf120db942d2c2fa06077da847ead810f27cb7bb2 (patch)
tree1150aab93519118dc65a037303a01492b5d31921 /lib/oxidized/model/planet.rb
parent7d62849c24c814b79bd916f165c32602c129eed3 (diff)
parente13a3175fb86eef065d0a887388da83de1b70e6b (diff)
Merge pull request #890 from flokli/planet-temperature
Planet: remove temperature from output
Diffstat (limited to 'lib/oxidized/model/planet.rb')
-rw-r--r--lib/oxidized/model/planet.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/oxidized/model/planet.rb b/lib/oxidized/model/planet.rb
index 05a369a..9ce9cf9 100644
--- a/lib/oxidized/model/planet.rb
+++ b/lib/oxidized/model/planet.rb
@@ -39,9 +39,10 @@ class Planet < Oxidized::Model
cfg = cfg.each_line.to_a[0...-2]
- # Strip system time and system uptime from planet gs switches
+ # Strip system (up)time and temperature
cfg = cfg.reject { |line| line.match /System Time\s*:.*/ }
cfg = cfg.reject { |line| line.match /System Uptime\s*:.*/ }
+ cfg = cfg.reject { |line| line.match /Temperature\s*:.*/ }
comment cfg.join
end