
From: Archana Singh <archus@linux.vnet.ibm.com> Added check for s390x architecture to not add graphics as not supported on s390x architecture. Signed-off-by: Archana Singh <archus@linux.vnet.ibm.com> --- vmtemplate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vmtemplate.py b/vmtemplate.py index ef92914..dc81fe2 100644 --- a/vmtemplate.py +++ b/vmtemplate.py @@ -350,7 +350,10 @@ class VMTemplate(object): graphics = dict(self.info['graphics']) graphics.update(kwargs.get('graphics', {})) - params['graphics'] = get_graphics_xml(graphics) + # Graphics is not supported on s390x, this check will + # not add graphics tag in domain xml. + if params['arch'] not in ['s390x']: + params['graphics'] = get_graphics_xml(graphics) libvirt_stream_protocols = kwargs.get('libvirt_stream_protocols', []) cdrom_xml = self._get_cdrom_xml(libvirt_stream_protocols) -- 2.7.4