[virt-tools-list] [virt-manager PATCH] virtinst: cli: fix ParserBoot to return the parsed object

Pavel Hrdina phrdina at redhat.com
Fri Mar 1 15:50:40 UTC 2019


This fixes virt-xml to return an XML for command:

    virt-xml --build-xml --boot os_type=hvm

The VirtCLIParser.parse() expects the _parse() method to return
the parsed object.

Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---

Pushed

 virtinst/cli.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/cli.py b/virtinst/cli.py
index d56fade8..7a406eb4 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -1912,7 +1912,7 @@ class ParserBoot(VirtCLIParser):
         if boot_order:
             inst.bootorder = boot_order
 
-        super()._parse(inst)
+        return super()._parse(inst)
 
     @classmethod
     def __init_class__(cls, **kwargs):
-- 
2.20.1




More information about the virt-tools-list mailing list