Fix fedoraGroupRequires blank value.
This commit is contained in:
parent
fdb9cacc1c
commit
2b42ba0451
1 changed files with 3 additions and 1 deletions
4
fas/ldap/PgToLDAP.py
Normal file → Executable file
4
fas/ldap/PgToLDAP.py
Normal file → Executable file
|
@ -332,11 +332,13 @@ def main():
|
||||||
else:
|
else:
|
||||||
group[3]="TRUE"
|
group[3]="TRUE"
|
||||||
|
|
||||||
if str(group[5]) == "0" :
|
if str(group[4]) == "0" :
|
||||||
group[4]="FALSE"
|
group[4]="FALSE"
|
||||||
else:
|
else:
|
||||||
group[4]="TRUE"
|
group[4]="TRUE"
|
||||||
|
|
||||||
|
if group[5] == None:
|
||||||
|
group[5] = ""
|
||||||
|
|
||||||
userLdif.append(["fedoraGroupNeedsSponsor",[str(group[3])]]) #need to convert to bool
|
userLdif.append(["fedoraGroupNeedsSponsor",[str(group[3])]]) #need to convert to bool
|
||||||
userLdif.append(["fedoraGroupUserCanRemove",[str(group[4])]]) #need to convert to bool
|
userLdif.append(["fedoraGroupUserCanRemove",[str(group[4])]]) #need to convert to bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue