mirror of https://gitee.com/openkylin/libvirt.git
vz: fixes: snapshot: Switch type of virDomainSnapshotObj.def
Fix for commit 1ab05da22
refactoring snapshot code.
Reviewed-by: Cole Robinson <crobinso@redhat.com>
ACKed-by: Maxim Nestratov <mnestratov@virtuozzo.com>
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
be2bff3d0a
commit
17b9149b33
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue