mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
Fix: replace incorrect no_cli with no_option flag
The 'no_cli' is not valid flag in parameters scope, so to hide option from CLI 'no_option' flag should be used https://fedorahosted.org/freeipa/ticket/4995 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
parent
05c8808c76
commit
5c58751d72
@ -1911,7 +1911,7 @@ class LDAPSearch(BaseLDAPCommand, crud.Search):
|
||||
# no_members are always true for find commands, do not
|
||||
# show option in CLI but keep API compatibility
|
||||
option = option.clone(
|
||||
default=True, flags=option.flags | {"no_cli"})
|
||||
default=True, flags=option.flags | {"no_option"})
|
||||
yield option
|
||||
if self.obj.primary_key and \
|
||||
'no_output' not in self.obj.primary_key.flags:
|
||||
|
Loading…
Reference in New Issue
Block a user