diff options
author | Lamont Granquist <454857+lamont-granquist@users.noreply.github.com> | 2021-12-07 12:30:48 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 12:30:48 -0800 |
commit | d80b25609263309d7cfcd18c062700691824d5dd (patch) | |
tree | 381134e4cb6ce6b1f3786e2b4a513422883ff928 | |
parent | f990e6cd2a4cc559b25c3d7730768408ac25202a (diff) | |
parent | 00808c5bb9fc37d59e4fbd1286de9e72d850529d (diff) | |
download | chef-d80b25609263309d7cfcd18c062700691824d5dd.tar.gz |
Merge pull request #12207 from jasonwbarnett/bugfix/add-recipe-name
-rw-r--r-- | lib/chef/provider.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 80c58c09ee..5fda36ac63 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -35,7 +35,6 @@ class Chef attr_accessor :after_resource attr_accessor :run_context - attr_reader :recipe_name attr_reader :logger include Chef::Mixin::WhyRun @@ -174,6 +173,10 @@ class Chef new_resource.cookbook_name end + def recipe_name + new_resource.recipe_name + end + # hook that subclasses can use to do lazy validation for where properties aren't flexible enough def check_resource_semantics!; end |