mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
schema: properly fix Flag arguments on the client
The previous fix in commit a77e21cbca 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>
This commit is contained in:
@@ -219,8 +219,8 @@ class _SchemaPlugin(object):
|
|||||||
cls = Password
|
cls = Password
|
||||||
sensitive = False
|
sensitive = False
|
||||||
elif (type_name == 'bool' and
|
elif (type_name == 'bool' and
|
||||||
'default' in schema and
|
'default' in schema and schema['default'][0] == u'False' and
|
||||||
schema['default'][0] == u'False'):
|
not schema.get('alwaysask', False)):
|
||||||
cls = Flag
|
cls = Flag
|
||||||
del schema['default']
|
del schema['default']
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user