From 8d5272e68775046db450d860c173a4d531a95ff2 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 30 Jun 2016 10:27:05 +0200 Subject: [PATCH] schema: properly fix Flag arguments on the client The previous fix in commit a77e21cbca05be422fe5826857cfba7e0ba6e71f made some Bool arguments appear as Flag on the client. This change fixes that. https://fedorahosted.org/freeipa/ticket/6009 Reviewed-By: David Kupka --- ipaclient/remote_plugins/schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipaclient/remote_plugins/schema.py b/ipaclient/remote_plugins/schema.py index 7d5c8d064..da917a984 100644 --- a/ipaclient/remote_plugins/schema.py +++ b/ipaclient/remote_plugins/schema.py @@ -219,8 +219,8 @@ class _SchemaPlugin(object): cls = Password sensitive = False elif (type_name == 'bool' and - 'default' in schema and - schema['default'][0] == u'False'): + 'default' in schema and schema['default'][0] == u'False' and + not schema.get('alwaysask', False)): cls = Flag del schema['default'] else: