2012-01-05 20:41:54 +01:00
|
|
|
Cast maxmem to int before computation
|
|
|
|
|
|
|
|
Reported in L3 bnc#732782
|
|
|
|
|
|
|
|
From: Dario Abatianni <dabatianni@novell.com>
|
|
|
|
|
2012-09-17 17:49:23 +02:00
|
|
|
Index: xen-4.2.0-testing/tools/python/xen/xm/xenapi_create.py
|
2012-01-05 20:41:54 +01:00
|
|
|
===================================================================
|
2012-09-17 17:49:23 +02:00
|
|
|
--- xen-4.2.0-testing.orig/tools/python/xen/xm/xenapi_create.py
|
|
|
|
+++ xen-4.2.0-testing/tools/python/xen/xm/xenapi_create.py
|
2012-01-05 20:41:54 +01:00
|
|
|
@@ -764,7 +764,7 @@ class sxp2xml:
|
|
|
|
|
|
|
|
if get_child_by_name(config, "maxmem"):
|
|
|
|
memory.attributes["static_max"] = \
|
|
|
|
- str(int(get_child_by_name(config, "maxmem")*1024*1024))
|
|
|
|
+ str(int(get_child_by_name(config, "maxmem"))*1024*1024)
|
|
|
|
|
|
|
|
vm.appendChild(memory)
|
|
|
|
|