]> git.openstreetmap.org Git - chef.git/commitdiff
Fix for ruby 3.1 compatibility
authorTom Hughes <tom@compton.nu>
Tue, 8 Nov 2022 21:01:08 +0000 (21:01 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 8 Nov 2022 21:01:08 +0000 (21:01 +0000)
cookbooks/imagery/resources/site.rb

index 41a54b51739d3cf141322b4379193809ee6d9565..b5d50ee349bf992ae1eb93446972ebbd4336b499 100644 (file)
@@ -86,7 +86,7 @@ action :create do
   end
 
   layers = Dir.glob("/srv/imagery/layers/#{new_resource.site}/*.yml").collect do |path|
-    YAML.safe_load(::File.read(path), [Symbol])
+    YAML.safe_load(::File.read(path), :permitted_classes => [Symbol])
   end
 
   declare_resource :template, "/srv/#{new_resource.site}/imagery.js" do