summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-02-22 17:17:05 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2021-02-22 17:17:05 -0800
commit5688f2937b058427940998587b8285b7f6dde661 (patch)
treea01f4e6160cc244617f13bf12f396712cc5a03d1
parent173a86bb2eeac6acf38bcb8d287bb21933062347 (diff)
downloadchef-5688f2937b058427940998587b8285b7f6dde661.tar.gz
Re-lazy the template variable default
This hash probably needs to be open to mutation Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/resource/template.rb2
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.",