diff options
author | Tim Smith <tsmith@chef.io> | 2018-03-05 15:21:02 -0800 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-03-05 15:21:02 -0800 |
commit | c506bf3a6c5d428e524661464c676f97964d1032 (patch) | |
tree | 5284f3269120868edf294281fefec66c8102f76f /lib/chef/provider | |
parent | 5d1a651c000d393445fa73364159d28b4af5887c (diff) | |
download | chef-c506bf3a6c5d428e524661464c676f97964d1032.tar.gz |
Use verify to validat the keyfix_apt_repo
TIL
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/apt_repository.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/chef/provider/apt_repository.rb b/lib/chef/provider/apt_repository.rb index 3792ffe9e4..6bbb052792 100644 --- a/lib/chef/provider/apt_repository.rb +++ b/lib/chef/provider/apt_repository.rb @@ -201,12 +201,7 @@ class Chef mode "0644" sensitive new_resource.sensitive action :create - notifies :run, "execute[validate keyfile]", :immediately - end - - declare_resource(:execute, "validate keyfile") do - action :nothing - command "gpg #{cached_keyfile}" + verify "gpg %{path}" end declare_resource(:execute, "apt-key add #{cached_keyfile}") do |