[virt-tools-list] [virt-manager PATCH] virtinst: cli: fix ParserBoot to return the parsed object
Marc Hartmayer
mhartmay at linux.ibm.com
Mon Mar 4 13:34:19 UTC 2019
On Fri, Mar 01, 2019 at 04:50 PM +0100, Pavel Hrdina <phrdina at redhat.com> wrote:
> 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
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
>
Reviewed-by: Marc Hartmayer <mhartmay at linux.ibm.com>
--
Kind regards / Beste Grüße
Marc Hartmayer
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Matthias Hartmann
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
More information about the virt-tools-list
mailing list