From 83f6ddb473156c0eb1d85f98a7eb2997e7b70dc5 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 19 May 2016 16:24:47 +0200 Subject: 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 --- ipalib/parameters.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib') diff --git a/ipalib/parameters.py b/ipalib/parameters.py index e46068c96..2ebd74d25 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -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) -- cgit