diff options
author | Tim Smith <tsmith@chef.io> | 2017-04-28 11:48:55 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-05-12 09:29:33 -0700 |
commit | ca63f97a0e750d4256cd57106e339686f8631dff (patch) | |
tree | c0e97f8199bfbbb25978e877af657c7a78bf9f69 /lib/chef/resource/apt_preference.rb | |
parent | 3d6fcbd0870da39117f45662e367b36491237c3b (diff) | |
download | chef-ca63f97a0e750d4256cd57106e339686f8631dff.tar.gz |
Wire up provider/resource and use constants so we can test
Also allow the pin priority to be an integer since there's no reason that needs to be a string
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/apt_preference.rb')
-rw-r--r-- | lib/chef/resource/apt_preference.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/apt_preference.rb b/lib/chef/resource/apt_preference.rb index cccddafdc5..78b55d0dba 100644 --- a/lib/chef/resource/apt_preference.rb +++ b/lib/chef/resource/apt_preference.rb @@ -27,7 +27,7 @@ class Chef property :package_name, String, name_property: true, regex: [/^([a-z]|[A-Z]|[0-9]|_|-|\.|\*|\+)+$/] property :glob, String property :pin, String, required: true - property :pin_priority, String, required: true + property :pin_priority, [String,Integer], required: true default_action :add allowed_actions :add, :remove |