mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Allow primary keys to use different type than unicode.
Also return list of primary keys instead of a single unicode CSV value from LDAPDelete-based commands. This introduces a new capability 'primary_key_types' for backward compatibility with old clients. Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
committed by
Petr Viktorin
parent
c644b47492
commit
4314d02fbf
@@ -363,7 +363,8 @@ class textui(backend.Backend):
|
||||
label = labels.get(key, key)
|
||||
flag = flags.get(key, [])
|
||||
value = entry[key]
|
||||
if 'suppress_empty' in flag and value in [u'', '', [], None]:
|
||||
if ('suppress_empty' in flag and
|
||||
value in [u'', '', (), [], None]):
|
||||
continue
|
||||
if isinstance(value, dict):
|
||||
if frontend.entry_count(value) == 0:
|
||||
|
||||
Reference in New Issue
Block a user