mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
snapshot: fix regression with system checkpoints
Regression introduced in commit d6f6b2d194c. Running 'virsh snapshot-create dom' would mistakenly report that disks can only be specified for disk snapshots. * src/conf/domain_conf.c (virDomainSnapshotDefParseString): Only give error about no disk support when <disk> was found.
This commit is contained in:
parent
ae2bee4c5c
commit
2acd4a1640
@ -11622,7 +11622,7 @@ virDomainSnapshotDefParseString(const char *xmlStr,
|
||||
goto cleanup;
|
||||
}
|
||||
VIR_FREE(nodes);
|
||||
} else {
|
||||
} else if (i) {
|
||||
virDomainReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||
_("unable to handle disk requests in snapshot"));
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user