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:
Martin Basti 2016-06-02 08:07:12 +02:00
parent 05c8808c76
commit 5c58751d72

View File

@ -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: