[virt-tools-list] [PATCH 2/4] virtinst: error out if spice+gl is not supported

Pavel Hrdina phrdina at redhat.com
Mon Nov 14 08:56:14 UTC 2016


On Wed, Nov 09, 2016 at 11:21:33AM +0400, marcandre.lureau at redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
> ---
>  virtinst/guest.py | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/virtinst/guest.py b/virtinst/guest.py
> index 252da22..3366fcb 100644
> --- a/virtinst/guest.py
> +++ b/virtinst/guest.py
> @@ -1089,6 +1089,11 @@ class Guest(XMLBuilder):
>                  if dev.image_compression is None:
>                      dev.image_compression = "off"
>  
> +            if (dev.type == "spice" and dev.gl and
> +                 not self.conn.check_support(
> +                     self.conn.SUPPORT_CONN_SPICE_GL)):
> +                 raise ValueError(_("Host does not support spice GL"))

The indentation is off by +1. I'll fix it before pushing.

Pavel

> +
>      def _add_spice_channels(self):
>          if self.skip_default_channel:
>              return
> -- 
> 2.10.0
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20161114/c1dc1258/attachment.sig>


More information about the virt-tools-list mailing list