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:
Eric Blake 2011-09-08 14:06:45 +01:00
parent ae2bee4c5c
commit 2acd4a1640

View File

@ -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;