summaryrefslogtreecommitdiff
path: root/lib/chef/deprecation
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-07-31 10:49:09 -0700
committerdanielsdeleo <dan@opscode.com>2013-08-02 09:29:05 -0700
commitecdde45cdccfd966c9bafdb119090546e4ec3f56 (patch)
treeb45f15aa81c75c1686a177f37d1b7d21fbddf875 /lib/chef/deprecation
parent7c416115a891b01319ae908e68f164a24b80240e (diff)
downloadchef-ecdde45cdccfd966c9bafdb119090546e4ec3f56.tar.gz
Fix bad const. ref in deprecation/provider/template
Fixes CHEF-4406 http://tickets.opscode.com/browse/CHEF-4406 Calls to Chef::Provider::Template#template_location and #template_finder will now correctly reference the Chef::Provider::TemplateFinder class. Chef::Provider::Package#preseed_resource uses these methods expecting an error to be raised only if there is no template with the desired name, which triggers a fallback to cookbook_file-based preseed files. This patch restores the template-based preseed functionality, but will trigger deprecation warnings from within Chef::Provider::Package's internal code.
Diffstat (limited to 'lib/chef/deprecation')
-rw-r--r--lib/chef/deprecation/provider/template.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/deprecation/provider/template.rb b/lib/chef/deprecation/provider/template.rb
index 3d8071f00b..d7a228e97a 100644
--- a/lib/chef/deprecation/provider/template.rb
+++ b/lib/chef/deprecation/provider/template.rb
@@ -33,7 +33,7 @@ class Chef
def template_finder
@template_finder ||= begin
- TemplateFinder.new(run_context, cookbook_name, node)
+ Chef::Provider::TemplateFinder.new(run_context, cookbook_name, node)
end
end