mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 15:52:55 +00:00
esx: Don't treat an empty root snapshot list as error
An empty root snapshot list was considered as error condition. Creating a new snapshot would fail if the domain didn't have snapshots yet, because the snapshot-create function tries to lookup the list of existing snapshots in order to verify that the snapshot name is unique. This fails if the domain doesn't have snapshots yet. Removing the NULL check from esxVI_LookupRootSnapshotTreeList fixes this.
This commit is contained in:
parent
3f52921d43
commit
b1fab0c21c
@ -2503,12 +2503,6 @@ esxVI_LookupRootSnapshotTreeList
|
||||
}
|
||||
}
|
||||
|
||||
if (*rootSnapshotTreeList == NULL) {
|
||||
ESX_VI_ERROR(VIR_ERR_INTERNAL_ERROR, "%s",
|
||||
_("Could not lookup root snapshot list"));
|
||||
goto failure;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
esxVI_String_Free(&propertyNameList);
|
||||
esxVI_ObjectContent_Free(&virtualMachine);
|
||||
|
Loading…
x
Reference in New Issue
Block a user