From 5c58751d72de27eae2181f2c0e620df03f8dbc82 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Thu, 2 Jun 2016 08:07:12 +0200 Subject: 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 --- ipalib/plugins/baseldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 9c77fd62e..bbd8ba146 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -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: -- cgit