Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <rest-service> basesystem : code cleanup
  • From: Bjoern Geuken <bgeuken@xxxxxxx>
  • Date: Fri, 4 Sep 2009 18:37:25 +0200
  • Message-id: <E1Mlf02-0004EN-1j@xxxxxxxxxxxxxxxx>
ref: refs/heads/basesystem
commit de267dd59fae586a6097586c4fd6fbf6fbc83a49
Author: Bjoern Geuken <bgeuken@xxxxxxx>
Date: Fri Sep 4 18:37:25 2009 +0200

code cleanup
---
plugins/status/lib/status.rb | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/plugins/status/lib/status.rb b/plugins/status/lib/status.rb
index a5154d7..957c079 100644
--- a/plugins/status/lib/status.rb
+++ b/plugins/status/lib/status.rb
@@ -25,7 +25,7 @@ class Status
xml.label(:type => "hash", :name => label) do
# limits
path = "#{metric_group}/#{metric}/#{label}"
- if @limits.has_key? path
+ if @limits and @limits.has_key? path
xml.limits() do
xml.min(@limits["#{path}"]["maximum"])
xml.max(@limits["#{path}"]["minimum"])
@@ -63,7 +63,6 @@ class Status
break
end
end
- @limits = {}
@limits = YAML.load(File.open(File.join(plugin_config_dir,
"status_limits.yaml"))) if File.exists?(File.join(plugin_config_dir,
"status_limits.yaml"))
end

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages