schema: fix Flag arguments on the client

Fix Flag arguments appearing as Bool on the client.

https://fedorahosted.org/freeipa/ticket/6009

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Jan Cholasta 2016-06-28 08:40:48 +02:00
parent 6e4e522e52
commit a77e21cbca

View File

@ -220,7 +220,7 @@ class _SchemaPlugin(object):
sensitive = False
elif (type_name == 'bool' and
'default' in schema and
schema['default'] == [u'False']):
schema['default'][0] == u'False'):
cls = Flag
del schema['default']
else: