summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-06 23:11:32 -0700
committerTim Smith <tsmith@chef.io>2021-05-06 23:11:32 -0700
commitc7713c827a1edbeeb21beb43c253c1ec49a99d10 (patch)
tree22a342196c8c463bf8d9e77653223c84e773d880
parenta9df26337e751bdefc8ca80cfcc543f8e46e9653 (diff)
downloadchef-c7713c827a1edbeeb21beb43c253c1ec49a99d10.tar.gz
Fix a typo setting up cookbook_name value in templates
There was an extra o in the logic in this setup Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--cspell.json1
-rw-r--r--lib/chef/provider/template/content.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/cspell.json b/cspell.json
index 4f620ffdf9..df5299a71b 100644
--- a/cspell.json
+++ b/cspell.json
@@ -274,7 +274,6 @@
"cookiecurse",
"Cookstyle",
"cookstyle",
- "coookbook",
"copypasta",
"coreutils",
"Cowie",
diff --git a/lib/chef/provider/template/content.rb b/lib/chef/provider/template/content.rb
index fc8f30a7dc..00a82fea79 100644
--- a/lib/chef/provider/template/content.rb
+++ b/lib/chef/provider/template/content.rb
@@ -63,7 +63,7 @@ class Chef
context[:template_finder] = template_finder
# helper variables
- context[:cookbook_name] = new_resource.cookbook_name unless context.keys.include?(:coookbook_name)
+ context[:cookbook_name] = new_resource.cookbook_name unless context.keys.include?(:cookbook_name)
context[:recipe_name] = new_resource.recipe_name unless context.keys.include?(:recipe_name)
context[:recipe_line_string] = new_resource.source_line unless context.keys.include?(:recipe_line_string)
context[:recipe_path] = new_resource.source_line_file unless context.keys.include?(:recipe_path)