Permalink
Browse files

* fix conditional (thank you Mathias, Alex)

 * fix port > host
  • Loading branch information...
1 parent c38f802 commit 58feb6f4b551e6af396d74ee2745fda6653b11ed @till committed Aug 31, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 ganglia-plugins/templates/default/redis.pyconf.erb
@@ -1,9 +1,9 @@
<%-
-if !node[:scalarium][:roles][:redis][:instances].nil?
+if node[:scalarium] && node[:scalarium][:roles][:redis][:instances].any?
redis_instance = node[:scalarium][:roles][:redis][:instances].first
host = redis_instance[:private_ip]
else
- host = node[:ganglia_plugins][:redis][:port]
+ host = node[:ganglia_plugins][:redis][:host]
end
%>
modules {

0 comments on commit 58feb6f

Please sign in to comment.