From ca63f97a0e750d4256cd57106e339686f8631dff Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 28 Apr 2017 11:48:55 -0700 Subject: 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 --- lib/chef/resource/apt_preference.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/resource/apt_preference.rb') 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 -- cgit v1.2.1