Hi,

the attached patch fixes <https://fedorahosted.org/freeipa/ticket/5894>.

Honza

--
Jan Cholasta
From 42ddc01aecf3bfd84f3b4c6afc07e962f0555031 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
Date: Thu, 19 May 2016 16:24:47 +0200
Subject: [PATCH] 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
---
 ipalib/parameters.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ipalib/parameters.py b/ipalib/parameters.py
index e46068c..2ebd74d 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)
-- 
2.5.5

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to