summaryrefslogtreecommitdiff
path: root/lib/chef/provider/zypper_repository.rb
diff options
context:
space:
mode:
authorMarc Chamberland <mchamberland@pbsc.com>2019-05-05 20:08:36 -0400
committerMarc Chamberland <mchamberland@pbsc.com>2019-05-23 12:30:56 -0400
commitc08d0b8789b9ad5ac8082bef370d5cc6ae5b610f (patch)
tree0f7ad457fac7e52f87e34e29ef865e5a979580e8 /lib/chef/provider/zypper_repository.rb
parent44aae2c29d0c4ba28b4dbfc8c638036d8a2663ec (diff)
downloadchef-c08d0b8789b9ad5ac8082bef370d5cc6ae5b610f.tar.gz
More distro constant applications
Signed-off-by: Marc Chamberland <mchamberland@pbsc.com>
Diffstat (limited to 'lib/chef/provider/zypper_repository.rb')
-rw-r--r--lib/chef/provider/zypper_repository.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/provider/zypper_repository.rb b/lib/chef/provider/zypper_repository.rb
index 8c1497b5f5..46d81430dd 100644
--- a/lib/chef/provider/zypper_repository.rb
+++ b/lib/chef/provider/zypper_repository.rb
@@ -21,6 +21,7 @@ require_relative "../dsl/declare_resource"
require_relative "noop"
require_relative "../mixin/shell_out"
require "shellwords" unless defined?(Shellwords)
+require_relative "../dist"
class Chef
class Provider
@@ -111,7 +112,7 @@ class Chef
logger.trace("Will use :cookbook_file resource to cache the gpg key locally")
:cookbook_file
else
- raise Chef::Exceptions::FileNotFound, "Cannot determine location of gpgkey. Must start with 'http' or be a file managed by Chef."
+ raise Chef::Exceptions::FileNotFound, "Cannot determine location of gpgkey. Must start with 'http' or be a file managed by #{Chef::Dist::PRODUCT}."
end
end