From 9d3c008ecb73736dc23d91cd61b00c1befbf2e2c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 20 Apr 2012 15:39:13 +0200 Subject: [PATCH] dom0/core: fix memory parse fix --- dom0/qvm-core/qubes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index e6c62488..509117e0 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -234,7 +234,7 @@ class QubesVm(object): "netvm": { "default": None, "attr": "_netvm", 'order': 20 }, "label": { "attr": "_label", "default": QubesVmLabels["red"], 'order': 20 }, "memory": { "default": default_memory, 'order': 20, "eval": "int(value)" }, - "maxmem": { "default": None, 'order': 25, "eval": "int(value) if value eles None" }, + "maxmem": { "default": None, 'order': 25, "eval": "int(value) if value else None" }, "pcidevs": { "default": '[]', 'order': 25, "eval": \ '[] if value in ["none", None] else eval(value) if value.find("[") >= 0 else eval("[" + value + "]")' }, # Internal VM (not shown in qubes-manager, doesn't create appmenus entries