projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23399ca
)
Add Symbol to whitelist of classes to load for YAML.safe_load
author
Tom Hughes
<tom@compton.nu>
Mon, 6 Feb 2017 08:35:49 +0000
(08:35 +0000)
committer
Tom Hughes
<tom@compton.nu>
Mon, 6 Feb 2017 08:35:49 +0000
(08:35 +0000)
cookbooks/imagery/resources/site.rb
patch
|
blob
|
history
diff --git
a/cookbooks/imagery/resources/site.rb
b/cookbooks/imagery/resources/site.rb
index 2bebd0c75c5242012f8118977fe93efdd049e077..f80f0407a0ff6c13cd8c7ddd186c9d8938991843 100644
(file)
--- a/
cookbooks/imagery/resources/site.rb
+++ b/
cookbooks/imagery/resources/site.rb
@@
-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