Skip to content

Commit 3634e66

Browse files
committed
Merge pull request saltstack#4096 from s0undt3ch/hotfix/fix-travis-again
Fix `None` is not iterable exhibited while running `integration.states.user.UserTest`
2 parents 2735d38 + 60a95d8 commit 3634e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

salt/modules/useradd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def add(name,
8787
cmd += '-u {0} '.format(uid)
8888
if gid not in (None, ''):
8989
cmd += '-g {0} '.format(gid)
90-
elif name in groups:
90+
elif groups is not None and name in groups:
9191
def usergroups():
9292
retval = False
9393
try:

0 commit comments

Comments
 (0)