summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/template.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2015-09-02 13:42:07 +0100
committerThom May <thom@may.lt>2015-09-02 13:42:07 +0100
commitb25ff490b191bbec7f291733108f6980f68000a1 (patch)
treed54b80693ab2bb55df74368e31eac65e4eca3e1e /lib/chef/mixin/template.rb
parentb86ba5b0858676da98e0456d340ac2f1a031a0d1 (diff)
parentd9820c430b686a1dedd4ab2cadd20b0cadbbb0d7 (diff)
downloadchef-b25ff490b191bbec7f291733108f6980f68000a1.tar.gz
Merge pull request #3510 from ckaushik/issue_2513
Fixing Issue #2513 - the broken render of nested partial templates
Diffstat (limited to 'lib/chef/mixin/template.rb')
-rw-r--r--lib/chef/mixin/template.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/mixin/template.rb b/lib/chef/mixin/template.rb
index be83edc697..db9a2f6d91 100644
--- a/lib/chef/mixin/template.rb
+++ b/lib/chef/mixin/template.rb
@@ -136,6 +136,7 @@ class Chef
raise "You cannot render partials in this context" unless @template_finder
partial_variables = options.delete(:variables) || _public_instance_variables
+ partial_variables[:template_finder] = @template_finder
partial_context = self.class.new(partial_variables)
partial_context._extend_modules(@_extension_modules)