Merge pull request #39800 from twangboy/win_fix_test_useradd

Fix test_add_user_to_group for Windows
This commit is contained in:
Mike Place 2017-03-02 22:26:35 -07:00 committed by GitHub
commit 9ce11794b7

View File

@ -183,8 +183,7 @@ class UseraddModuleTestWindows(integration.ModuleCase):
# And create the user as a member of that group
if self.run_function(
'user.add',
[user_name, 'groups={0}'.format(group_name)]) is False:
'user.add', [user_name], groups=group_name) is False:
self.run_function('user.delete', [user_name, True, True])
self.skipTest('Failed to create user')