diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-05-04 15:27:21 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-04 15:27:21 -0700 |
commit | b96fa115944c8def46aaaab819d4c8c5c1ce2576 (patch) | |
tree | 06cfb4fd9c8f094cb4eab9ef4f320bafa34f9b8b | |
parent | 21bff8e8a4cba6dbc03dd6ded304ee3aa542ee2c (diff) | |
download | chef-b96fa115944c8def46aaaab819d4c8c5c1ce2576.tar.gz |
Only require pin/pin_priority in :add action
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/apt_preference.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/apt_preference.rb b/lib/chef/resource/apt_preference.rb index 7b5a56463c..fd987466ea 100644 --- a/lib/chef/resource/apt_preference.rb +++ b/lib/chef/resource/apt_preference.rb @@ -69,11 +69,11 @@ class Chef property :pin, String, description: "The package version or repository to pin.", - required: true + required: [:add] property :pin_priority, [String, Integer], description: "Sets the Pin-Priority for a package. See <https://wiki.debian.org/AptPreferences> for more details.", - required: true + required: [:add] default_action :add allowed_actions :add, :remove |