diff --git a/virtinst/cli.py b/virtinst/cli.py index 6daea26a6..559ec9f7a 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -2335,7 +2335,7 @@ class ParserCPU(VirtCLIParser): cls.add_arg("numa.cell[0-9]*.memAccess", "memAccess", find_inst_cb=cls.cell_find_inst_cb) cls.add_arg("numa.cell[0-9]*.discard", "discard", - find_inst_cb=cls.cell_find_inst_cb) + find_inst_cb=cls.cell_find_inst_cb, is_onoff=True) cls.add_arg("numa.cell[0-9]*.memory", "memory", find_inst_cb=cls.cell_find_inst_cb) cls.add_arg("numa.cell[0-9]*.unit", "unit", diff --git a/virtinst/domain/cpu.py b/virtinst/domain/cpu.py index 1bc4d3fd8..a6a3ab3e7 100644 --- a/virtinst/domain/cpu.py +++ b/virtinst/domain/cpu.py @@ -33,7 +33,7 @@ class _CPUCell(XMLBuilder): memory = XMLProperty("./@memory", is_int=True) unit = XMLProperty("./@unit") memAccess = XMLProperty("./@memAccess") - discard = XMLProperty("./@discard") + discard = XMLProperty("./@discard", is_yesno=True) siblings = XMLChildProperty(_CPUCellSibling, relative_xpath="./distances")