Fix crash when creating new groups. You can't iterate over a None variable.

440081
This commit is contained in:
Rob Crittenden 2008-04-01 15:46:50 -04:00
parent 04da7a1ecc
commit 6d136d7fff

View File

@ -1833,6 +1833,8 @@ class IPAServer:
real_members = group.get('member')
if isinstance(real_members, basestring):
real_members = [real_members]
if real_members is None:
real_members = []
# Normalize all the dns
for i in range(len(real_members)):