lib/import: do not produce add commands with an empty list of values
This commit is contained in:
parent
5b0150f6ad
commit
876ff164e7
|
@ -96,7 +96,7 @@ for ldif_path in args.ldifs:
|
|||
modlist.append((ldap.MOD_ADD, key, list(new-old)))
|
||||
else:
|
||||
modlist.append((ldap.MOD_REPLACE, key, list(new)))
|
||||
else:
|
||||
elif new:
|
||||
modlist.append((ldap.MOD_ADD, key, list(new)))
|
||||
if modlist:
|
||||
modifies.append((dn, modlist))
|
||||
|
|
Reference in New Issue