From 3049a3e479b058b9134926d5f2c20bd9cc36bd55 Mon Sep 17 00:00:00 2001 From: Simon Kaluza Date: Thu, 2 Feb 2017 13:04:07 -0500 Subject: [PATCH] Fixed undefined method error process_hosts for Chef 12 compatibility Protected methods are no longer visible to Chef 12 templates --- providers/nginx_load_balancer.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/providers/nginx_load_balancer.rb b/providers/nginx_load_balancer.rb index 88493f6..79c9f91 100644 --- a/providers/nginx_load_balancer.rb +++ b/providers/nginx_load_balancer.rb @@ -69,9 +69,6 @@ action :after_restart do end - -protected - def process_hosts(nodes) nodes.map do |n| if n.is_a?(String)