]> git.openstreetmap.org Git - chef.git/commitdiff
Convert resource to hash before slicing it
authorTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:33:50 +0000 (11:33 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 17 Mar 2019 11:33:50 +0000 (11:33 +0000)
cookbooks/web/resources/rails_port.rb

index 1aeac0139fbc19a171fe7c5a1ee723b86aba5d1c..2d19c731ad426510cf8d61dbc732b2ac79d79397 100644 (file)
@@ -291,7 +291,7 @@ action :create do
     not_if { File.exist?("#{rails_directory}/config/example.application.yml") }
   end
 
-  settings = new_resource.slice(
+  settings = new_resource.to_hash.slice(
     "email_from",
     "status",
     "messages_domain",