dom0/core: fix memory parse fix
This commit is contained in:
parent
ff0b6d4352
commit
19d10d3829
@ -242,7 +242,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
|
||||
|
Loading…
Reference in New Issue
Block a user