Skip to content

Commit 86cfa67

Browse files
committed
Allow templates to have a source not ending in .erb
We still make sure that we match the end of the end of the file name, so this should never lead to loading the wrong template.
1 parent 2206526 commit 86cfa67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎chef/lib/chef/cookbook_loader.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def load_cookbooks
7575
cookbook_settings[cookbook_name][:lib_files]
7676
)
7777
load_cascading_files(
78-
"*.erb",
78+
"*",
7979
File.join(cookbook, "templates"),
8080
cookbook_settings[cookbook_name][:template_files]
8181
)

0 commit comments

Comments
 (0)