summaryrefslogtreecommitdiff
path: root/spec/data
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 /spec/data
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 'spec/data')
-rw-r--r--spec/data/cookbooks/preseed/templates/default/preseed-template.seed2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/data/cookbooks/preseed/templates/default/preseed-template.seed b/spec/data/cookbooks/preseed/templates/default/preseed-template.seed
index 164da3495d..6229ac83f5 100644
--- a/spec/data/cookbooks/preseed/templates/default/preseed-template.seed
+++ b/spec/data/cookbooks/preseed/templates/default/preseed-template.seed
@@ -1 +1 @@
-chef-integration-test chef-integration-test/sample-var string "hello world"
+chef-integration-test chef-integration-test/sample-var string "<%= node[:preseed_value] -%>"