diff options
| author | Ryan Cragun <ryan@chef.io> | 2019-09-03 15:02:30 -0600 |
|---|---|---|
| committer | Ryan Cragun <ryan@chef.io> | 2019-09-03 15:02:30 -0600 |
| commit | 96802f1f07d205b82629cfe6fbfd466b3a153ab8 (patch) | |
| tree | ef8b9934e053df65ce7e2ac7a3cae74c58738f2e /lib | |
| parent | f8393130f604ae7bb0c2794a2e59e358ebfaaec3 (diff) | |
| download | chef-ryancragun/mac_user.tar.gz | |
add functional testryancragun/mac_user
Signed-off-by: Ryan Cragun <ryan@chef.io>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/chef/provider/user/mac.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb index 0416e72eb1..414445cfa1 100644 --- a/lib/chef/provider/user/mac.rb +++ b/lib/chef/provider/user/mac.rb @@ -134,11 +134,11 @@ class Chef def create_user cmd = [-"-addUser", new_resource.username] - cmd += ["-fullName", new_resource.comment] if new_resource.property_is_set?(:comment) - cmd += ["-UID", new_resource.uid] if new_resource.property_is_set?(:uid) + cmd += ["-fullName", new_resource.comment] if new_resource.property_is_set?(:comment) + cmd += ["-UID", new_resource.uid] if new_resource.property_is_set?(:uid) cmd += ["-shell", new_resource.shell] - cmd += ["-home", new_resource.home] if new_resource.property_is_set?(:home) - cmd += ["-admin"] if new_resource.admin + cmd += ["-home", new_resource.home] + cmd += ["-admin"] if new_resource.admin # We can technically create a new user without the admin credentials # but without them the user cannot enable SecureToken, thus they cannot |
