From 2acd4a1640f07f1376d302fa412e5aa74cb604d2 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 8 Sep 2011 14:06:45 +0100 Subject: [PATCH] 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 was found. --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 74f8d6aec3..560c77354c 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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;