From: Tom Hughes Date: Sun, 17 Mar 2019 11:33:50 +0000 (+0000) Subject: Convert resource to hash before slicing it X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/5c4cebca48a6fc4bb6d4b9899cb93e3593efd878?ds=sidebyside Convert resource to hash before slicing it --- diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 1aeac0139..2d19c731a 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -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",