Permalink
Browse files

FC001: Use strings in preference to symbols to access node attributes.

  • Loading branch information...
1 parent 0136a3a commit d98a9abdece73d5e8c37d9ebb071cca2900defcc @andreacampi committed May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 providers/nginx_load_balancer.rb
@@ -36,7 +36,7 @@
action :before_deploy do
- template "#{node[:nginx][:dir]}/sites-available/#{new_resource.application.name}.conf" do
+ template "#{node['nginx']['dir']}/sites-available/#{new_resource.application.name}.conf" do
source new_resource.template ? new_resource.template : "load_balancer.conf.erb"
cookbook new_resource.template ? new_resource.cookbook_name : "application_nginx"
owner "root"

0 comments on commit d98a9ab

Please sign in to comment.