From 76be4f5ddac608873378e5bc43eb12731f7ddcf2 Mon Sep 17 00:00:00 2001 From: Nikolay Shirokovskiy Date: Tue, 28 May 2019 13:33:22 +0300 Subject: [PATCH] vz: fixes: snapshot: s/parent/parent_name/ as prep for virObject Apply renaming of 36603bc56 for the vz driver. Signed-off-by: Nikolay Shirokovskiy --- src/vz/vz_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index dfd49e7cc7..2286f9a04f 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -2460,14 +2460,14 @@ vzDomainSnapshotGetParent(virDomainSnapshotPtr snapshot, unsigned int flags) if (!(snap = vzSnapObjFromSnapshot(snapshots, snapshot))) goto cleanup; - if (!snap->def->parent) { + if (!snap->def->parent_name) { virReportError(VIR_ERR_NO_DOMAIN_SNAPSHOT, _("snapshot '%s' does not have a parent"), snap->def->name); goto cleanup; } - parent = virGetDomainSnapshot(snapshot->domain, snap->def->parent); + parent = virGetDomainSnapshot(snapshot->domain, snap->def->parent_name); cleanup: virDomainSnapshotObjListFree(snapshots); -- GitLab