diff options
Diffstat (limited to 'lib/chef/resource/user/windows_user.rb')
-rw-r--r-- | lib/chef/resource/user/windows_user.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/resource/user/windows_user.rb b/lib/chef/resource/user/windows_user.rb index d504158edf..d738ba1636 100644 --- a/lib/chef/resource/user/windows_user.rb +++ b/lib/chef/resource/user/windows_user.rb @@ -29,6 +29,11 @@ class Chef property :full_name, String, description: "The full name of the user.", introduced: "14.6" + + # Override the property from the parent class to coerce to integer. + property :uid, [ String, Integer, NilClass ], # nil for backwards compat + description: "The numeric user identifier.", + coerce: proc { |n| n && Integer(n) rescue n } end end end |