From: Nikolay Shirokovskiy Date: Fri, 5 Apr 2019 14:49:25 +0000 (+0300) Subject: vz: fixes: snapshot: Switch type of virDomainSnapshotObj.def X-Git-Tag: v5.3.0-rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17b9149b3309f65d5b0992e301babf31c51339b6;p=thirdparty%2Flibvirt.git vz: fixes: snapshot: Switch type of virDomainSnapshotObj.def Fix for commit 1ab05da22 refactoring snapshot code. Reviewed-by: Cole Robinson ACKed-by: Maxim Nestratov Signed-off-by: Nikolay Shirokovskiy --- diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index 5466c25c20..3d57144a43 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -2265,7 +2265,8 @@ vzDomainSnapshotGetXMLDesc(virDomainSnapshotPtr snapshot, unsigned int flags) virUUIDFormat(snapshot->domain->uuid, uuidstr); - xml = virDomainSnapshotDefFormat(uuidstr, snap->def, privconn->driver->caps, + xml = virDomainSnapshotDefFormat(uuidstr, virDomainSnapshotObjGetDef(snap), + privconn->driver->caps, privconn->driver->xmlopt, virDomainSnapshotFormatConvertXMLFlags(flags));