summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Cragun <ryan@chef.io>2019-09-03 15:02:30 -0600
committerRyan Cragun <ryan@chef.io>2019-09-03 15:02:30 -0600
commit96802f1f07d205b82629cfe6fbfd466b3a153ab8 (patch)
treeef8b9934e053df65ce7e2ac7a3cae74c58738f2e /lib
parentf8393130f604ae7bb0c2794a2e59e358ebfaaec3 (diff)
downloadchef-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.rb8
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