diff options
author | Lamont Granquist <lamont@opscode.com> | 2021-02-22 17:39:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 17:39:29 -0800 |
commit | 862c6e8bc69e1db496eab92c9947e1e238b471a5 (patch) | |
tree | 084c09a68f94cea519a432167ceba3e0679d6bbf | |
parent | 807a2565afcf1e711938d871298d923f4b90b4d9 (diff) | |
parent | 5688f2937b058427940998587b8285b7f6dde661 (diff) | |
download | chef-862c6e8bc69e1db496eab92c9947e1e238b471a5.tar.gz |
Merge pull request #11089 from chef/lcg/fix-unlazying-tests2
Re-lazy the template variable default
-rw-r--r-- | lib/chef/resource/template.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/template.rb b/lib/chef/resource/template.rb index 60b431ab8e..e3f266740d 100644 --- a/lib/chef/resource/template.rb +++ b/lib/chef/resource/template.rb @@ -61,7 +61,7 @@ class Chef property :variables, Hash, description: "The variables property of the template resource can be used to reference a partial template file by using a Hash.", - default: {} + default: lazy { {} } property :cookbook, String, description: "The cookbook in which a file is located (if it is not located in the current cookbook). The default value is the current cookbook.", |