summaryrefslogtreecommitdiff
path: root/lib/chef/provider/template_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/template_finder.rb')
-rw-r--r--lib/chef/provider/template_finder.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/provider/template_finder.rb b/lib/chef/provider/template_finder.rb
index d64839fa62..3c402f6aae 100644
--- a/lib/chef/provider/template_finder.rb
+++ b/lib/chef/provider/template_finder.rb
@@ -28,7 +28,9 @@ class Chef
end
def find(template_name, options = {})
- return template_name if options[:local]
+ if options[:local]
+ return options[:source] ? options[:source] : template_name
+ end
cookbook_name = options[:cookbook] ? options[:cookbook] : @cookbook_name