diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-30 10:27:05 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-30 11:02:20 +0200 |
commit | 8d5272e68775046db450d860c173a4d531a95ff2 (patch) | |
tree | cb45f38ad8ad37f1b6978d967421b6d0d8bb1634 /ipaclient | |
parent | aaf65e9c56c75d78d1c1f7dcefdb52dd3ddc419a (diff) | |
download | freeipa-8d5272e68775046db450d860c173a4d531a95ff2.tar.gz freeipa-8d5272e68775046db450d860c173a4d531a95ff2.tar.xz freeipa-8d5272e68775046db450d860c173a4d531a95ff2.zip |
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 <dkupka@redhat.com>
Diffstat (limited to 'ipaclient')
-rw-r--r-- | ipaclient/remote_plugins/schema.py | 4 |
1 files 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: |