From be20ee5d7349766e3e90268e6cb9f7c5b6ad0d78 Mon Sep 17 00:00:00 2001 From: anhkind Date: Thu, 11 Apr 2013 12:21:25 +0800 Subject: [PATCH] Updated setters for Chef 11 compatibility --- mod_cluster/recipes/server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_cluster/recipes/server.rb b/mod_cluster/recipes/server.rb index 943acca..6451eca 100644 --- a/mod_cluster/recipes/server.rb +++ b/mod_cluster/recipes/server.rb @@ -32,11 +32,11 @@ # Allow bind_ip entries like ["cloud", "local_ipv4"] if node[:mod_cluster][:mcpm_bind_ip].is_a?(Array) - node[:mod_cluster][:mcpm_bind_ip_resolved] = node[:mod_cluster][:mcpm_bind_ip].inject(node) do |hash, key| + node.set[:mod_cluster][:mcpm_bind_ip_resolved] = node[:mod_cluster][:mcpm_bind_ip].inject(node) do |hash, key| hash[key] end else - node[:mod_cluster][:mcpm_bind_ip_resolved] = node[:mod_cluster][:mcpm_bind_ip] + node.set[:mod_cluster][:mcpm_bind_ip_resolved] = node[:mod_cluster][:mcpm_bind_ip] end [ "slotmem", "proxy_cluster", "manager"].each do |mod|