summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-27 16:56:26 -0700
committerTim Smith <tsmith@chef.io>2017-09-28 11:04:54 -0700
commitf7a832a7d3e7c1873da57535543a87b2f372c925 (patch)
tree5c78158d872742800f72b306ef327dd010a707dc
parent7432c31db401ed7189419ac74be7839f10941527 (diff)
downloadchef-f7a832a7d3e7c1873da57535543a87b2f372c925.tar.gz
Install the key using the cached copy
Avoid double downloading the key Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/zypper_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/zypper_repository.rb b/lib/chef/provider/zypper_repository.rb
index aec4dff828..223fdb7a38 100644
--- a/lib/chef/provider/zypper_repository.rb
+++ b/lib/chef/provider/zypper_repository.rb
@@ -149,7 +149,7 @@ class Chef
end
declare_resource(:execute, "import gpg key from #{new_resource.gpgkey}") do
- command "/bin/rpm --import #{new_resource.gpgkey}"
+ command "/bin/rpm --import #{cached_keyfile}"
not_if { key_installed?(cached_keyfile) }
action :run
end