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

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