From: Pavel Hrdina Date: Mon, 27 Feb 2017 16:16:17 +0000 (+0100) Subject: conf: properly skip graphics listen element in migratable XML X-Git-Tag: v3.2.0-rc1~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba1672de8b0220869ede5f9f26a0767e8a390eb;p=thirdparty%2Flibvirt.git conf: properly skip graphics listen element in migratable XML We should skip only if the 'socket' path is specified because if there is no 'socket' path we need to keep that element in migratable XML. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1366088 Signed-off-by: Pavel Hrdina --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c0c1549a65..a58f997621 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -23134,6 +23134,7 @@ virDomainGraphicsDefFormat(virBufferPtr buf, * thus we can generate it in the migrateble XML. */ if (def->type == VIR_DOMAIN_GRAPHICS_TYPE_VNC && def->listens[i].type == VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_SOCKET && + def->listens[i].socket && !def->listens[i].autoGenerated) continue;