summaryrefslogtreecommitdiff
path: root/lib/chef/resource/user/mac_user.rb
diff options
context:
space:
mode:
authorJoseph Chilcote <chilcote+github@gmail.com>2020-01-25 16:36:23 -0800
committerJoseph Chilcote <chilcote+github@gmail.com>2020-01-25 16:36:23 -0800
commit9f3b604b1c205915474b31db58230d7712f96470 (patch)
treef53e10be305b91f8e22163341d5c1146e3a634ef /lib/chef/resource/user/mac_user.rb
parentfc7626547569a368ae3d53e3917467e8b04f3555 (diff)
downloadchef-9f3b604b1c205915474b31db58230d7712f96470.tar.gz
Account for if the propery is not being set in the resource, and also if it doesn't exist in the user record
Signed-off-by: Joseph Chilcote <chilcote@fb.com>
Diffstat (limited to 'lib/chef/resource/user/mac_user.rb')
-rw-r--r--lib/chef/resource/user/mac_user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/user/mac_user.rb b/lib/chef/resource/user/mac_user.rb
index 4b9c12bc64..2d53e1310e 100644
--- a/lib/chef/resource/user/mac_user.rb
+++ b/lib/chef/resource/user/mac_user.rb
@@ -101,7 +101,7 @@ class Chef
property :admin, [TrueClass, FalseClass], description: "Create the user as an admin", default: false
# Hide a user account in the macOS login window
- property :hidden, [TrueClass, FalseClass], description: "Hide account from loginwindow and system preferences", default: false
+ property :hidden, [TrueClass, FalseClass, nil], description: "Hide account from loginwindow and system preferences", default: nil
# TCC on macOS >= 10.14 requires admin credentials of an Admin user that
# has SecureToken enabled in order to toggle SecureToken.