Blame SOURCES/virt-manager-virtinst-cli-fix-ParserBoot-to-return-the-parsed-object.patch

3d61c0
From 17d821959cf76464be277edb8a656bacb74d2208 Mon Sep 17 00:00:00 2001
3d61c0
Message-Id: <17d821959cf76464be277edb8a656bacb74d2208@dist-git>
3d61c0
From: Pavel Hrdina <phrdina@redhat.com>
3d61c0
Date: Mon, 21 Jan 2019 13:47:17 +0100
3d61c0
Subject: [PATCH] virtinst: cli: fix ParserBoot to return the parsed object
3d61c0
3d61c0
This fixes virt-xml to return an XML for command:
3d61c0
3d61c0
    virt-xml --build-xml --boot os_type=hvm
3d61c0
3d61c0
The VirtCLIParser.parse() expects the _parse() method to return
3d61c0
the parsed object.
3d61c0
3d61c0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
3d61c0
(cherry picked from commit 7672b1b0101e736ba4bd9747f14dde279c81cb1f)
3d61c0
3d61c0
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1550513
3d61c0
3d61c0
Reviewed-by: Cole Robinson <crobinso@redhat.com>
3d61c0
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
3d61c0
---
3d61c0
 virtinst/cli.py | 2 +-
3d61c0
 1 file changed, 1 insertion(+), 1 deletion(-)
3d61c0
3d61c0
diff --git a/virtinst/cli.py b/virtinst/cli.py
3d61c0
index 71cba4cf..99d952ec 100644
3d61c0
--- a/virtinst/cli.py
3d61c0
+++ b/virtinst/cli.py
3d61c0
@@ -1683,7 +1683,7 @@ class ParserBoot(VirtCLIParser):
3d61c0
         if boot_order:
3d61c0
             inst.bootorder = boot_order
3d61c0
 
3d61c0
-        VirtCLIParser._parse(self, inst)
3d61c0
+        return VirtCLIParser._parse(self, inst)
3d61c0
 
3d61c0
 
3d61c0
 _register_virt_parser(ParserBoot)
3d61c0
-- 
3d61c0
2.20.1
3d61c0