]> git.openstreetmap.org Git - chef.git/commitdiff
Add Symbol to whitelist of classes to load for YAML.safe_load
authorTom Hughes <tom@compton.nu>
Mon, 6 Feb 2017 08:35:49 +0000 (08:35 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 6 Feb 2017 08:35:49 +0000 (08:35 +0000)
cookbooks/imagery/resources/site.rb

index 2bebd0c75c5242012f8118977fe93efdd049e077..f80f0407a0ff6c13cd8c7ddd186c9d8938991843 100644 (file)
@@ -77,7 +77,7 @@ action :create do
   end
 
   layers = Dir.glob("/srv/imagery/layers/#{name}/*.yml").collect do |path|
-    YAML.safe_load(::File.read(path))
+    YAML.safe_load(::File.read(path), [Symbol])
   end
 
   template "/srv/#{name}/imagery.js" do