mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
makeapi: use the same formatting for int
and long
values
This prevents validation failures on architectures where integer is less than 32 bits. https://fedorahosted.org/freeipa/ticket/5894 Reviewed-By: Martin Basti <mbasti@redhat.com>
This commit is contained in:
parent
5452006498
commit
83f6ddb473
@ -558,6 +558,8 @@ class Param(ReadOnly):
|
||||
value = self.__kw[key]
|
||||
if callable(value) and hasattr(value, '__name__'):
|
||||
value = value.__name__
|
||||
elif isinstance(value, six.integer_types):
|
||||
value = str(value)
|
||||
else:
|
||||
value = repr(value)
|
||||
yield '%s=%s' % (key, value)
|
||||
|
Loading…
Reference in New Issue
Block a user