]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/resources/rails_port.rb
Disable "slow run" reporting for chef
[chef.git] / cookbooks / web / resources / rails_port.rb
index d7f2e012da8d528510b932175a8777227bbf58b9..4d30aa7ccc9a3f3931c5b6af5ab3c1eb308f76b1 100644 (file)
@@ -154,7 +154,7 @@ action :create do
     line.gsub!(/^( *)support_email:.*$/, "\\1support_email: \"support@openstreetmap.org\"")
 
     if new_resource.email_from
-      line.gsub!(/^( *)email_from:.*$/, "\\1email_from: \"#{email_from}\"")
+      line.gsub!(/^( *)email_from:.*$/, "\\1email_from: \"#{new_resource.email_from}\"")
     end
 
     line.gsub!(/^( *)email_return_path:.*$/, "\\1email_return_path: \"bounces@openstreetmap.org\"")