mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +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;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
VIR_FREE(nodes);
|
VIR_FREE(nodes);
|
||||||
} else {
|
} else if (i) {
|
||||||
virDomainReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
virDomainReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
|
||||||
_("unable to handle disk requests in snapshot"));
|
_("unable to handle disk requests in snapshot"));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user