summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-06-04 19:58:56 -0700
committerJohn McCrae <john.mccrae@progress.com>2021-06-14 19:01:09 -0700
commit9599b565e3f7bcbccd0494c3d5a92651f41e96c4 (patch)
tree490365f7fad5f54bd724bb2cdb5fe80fd3b9ebfb /lib
parent529d0fbdb6c76a9e7e455f8d6880fc6cc14af5b2 (diff)
downloadchef-9599b565e3f7bcbccd0494c3d5a92651f41e96c4.tar.gz
Use the cookbook property now instead of the method
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/provider/zypper_repository.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/zypper_repository.rb b/lib/chef/provider/zypper_repository.rb
index b5bdbce2d7..d3a7253c9e 100644
--- a/lib/chef/provider/zypper_repository.rb
+++ b/lib/chef/provider/zypper_repository.rb
@@ -76,7 +76,7 @@ class Chef
#
# @return [Boolean] template file exists or doesn't
def template_available?(path)
- !path.nil? && run_context.has_template_in_cookbook?(cookbook_name, path)
+ !path.nil? && run_context.has_template_in_cookbook?(new_resource.cookbook, path)
end
# determine if a cookbook file is available in the run
@@ -84,7 +84,7 @@ class Chef
#
# @return [Boolean] cookbook file exists or doesn't
def has_cookbook_file?(fn)
- run_context.has_cookbook_file_in_cookbook?(cookbook_name, fn)
+ run_context.has_cookbook_file_in_cookbook?(new_resource.cookbook, fn)
end
# Given the provided key URI determine what kind of chef resource we need