Skip to content

Commit

Permalink
Lazily evaluate config content. Fixes #183.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Thomas committed Jul 24, 2015
1 parent b3790e9 commit 5599e00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
end

file "#{node['riak']['platform_etc_dir']}/riak.conf" do
content Cuttlefish.compile('', node['riak']['config']).join("\n")
content lazy { Cuttlefish.compile('', node['riak']['config']).join("\n") }
owner 'root'
mode 0644
notifies :restart, "service[#{riak_service}]"
Expand Down

0 comments on commit 5599e00

Please sign in to comment.