diff options
author | Tim Smith <tsmith@chef.io> | 2017-09-27 16:56:26 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-09-28 11:04:54 -0700 |
commit | f7a832a7d3e7c1873da57535543a87b2f372c925 (patch) | |
tree | 5c78158d872742800f72b306ef327dd010a707dc /lib/chef/provider/zypper_repository.rb | |
parent | 7432c31db401ed7189419ac74be7839f10941527 (diff) | |
download | chef-f7a832a7d3e7c1873da57535543a87b2f372c925.tar.gz |
Install the key using the cached copy
Avoid double downloading the key
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/zypper_repository.rb')
-rw-r--r-- | lib/chef/provider/zypper_repository.rb | 2 |
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 |