mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
vz: fixes: snapshot: s/parent/parent_name/ as prep for virObject
Apply renaming of 36603bc56
for the vz driver.
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
parent
e4030aac15
commit
76be4f5dda
@ -2460,14 +2460,14 @@ vzDomainSnapshotGetParent(virDomainSnapshotPtr snapshot, unsigned int flags)
|
|||||||
if (!(snap = vzSnapObjFromSnapshot(snapshots, snapshot)))
|
if (!(snap = vzSnapObjFromSnapshot(snapshots, snapshot)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (!snap->def->parent) {
|
if (!snap->def->parent_name) {
|
||||||
virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT,
|
virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT,
|
||||||
_("snapshot '%s' does not have a parent"),
|
_("snapshot '%s' does not have a parent"),
|
||||||
snap->def->name);
|
snap->def->name);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
parent = virGetDomainSnapshot(snapshot->domain, snap->def->parent);
|
parent = virGetDomainSnapshot(snapshot->domain, snap->def->parent_name);
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
virDomainSnapshotObjListFree(snapshots);
|
virDomainSnapshotObjListFree(snapshots);
|
||||||
|
Loading…
Reference in New Issue
Block a user