]> git.openstreetmap.org Git - chef.git/commitdiff
Convert property names to strings for the settings file
authorTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:55:22 +0000 (11:55 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:55:22 +0000 (11:55 +0000)
cookbooks/web/resources/rails_port.rb

index 12c0206529c94e4fdd655eb0cfc26793b73d8ec6..598c757fed78bda03ed202c7a3bb944a0da68d0a 100644 (file)
@@ -283,7 +283,7 @@ action :create do
     not_if { ::File.exist?("#{rails_directory}/config/example.application.yml") }
   end
 
-  settings = new_resource.to_hash.slice(
+  settings = new_resource.to_hash.transform_keys(&:to_s).slice(
     "email_from",
     "status",
     "messages_domain",