mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[XEND] Floats for not need to be stringified in Xen API.
Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
1 parent
f3ada9be62
commit
68da406e51
1 file changed
+1
-2
@@ -50,8 +50,7 @@ except ImportError:
|
||||
|
||||
|
||||
def stringify(value):
|
||||
if isinstance(value, float) or \
|
||||
isinstance(value, long) or \
|
||||
if isinstance(value, long) or \
|
||||
(isinstance(value, int) and not isinstance(value, bool)):
|
||||
return str(value)
|
||||
elif isinstance(value, dict):
|
||||
|
||||