]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuhotplugtest: Don't overwrite vm->def->id in testQemuHotplugCheckResult()
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 21 Apr 2023 08:06:10 +0000 (10:06 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 06:46:27 +0000 (08:46 +0200)
This is a leftover from v2.0.0-rc1~300. In v1.2.12-rc1~43 we've
introduced a code that explicitly sets vm->def->id to -1 to force
generation of inactive XML. But this was removed in the later
commit, which forgot to remove the restoration of the original
dom ID.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
tests/qemuhotplugtest.c

index 635f5a39bd1975c11470b89850bec179cc8700f3..0794a0c9a43a7de290ad7b2cb0a231160743c08d 100644 (file)
@@ -122,7 +122,6 @@ testQemuHotplugCheckResult(virDomainObj *vm,
                                 VIR_DOMAIN_DEF_FORMAT_SECURE);
     if (!actual)
         return -1;
-    vm->def->id = QEMU_HOTPLUG_TEST_DOMAIN_ID;
 
     if (STREQ(expected, actual)) {
         if (fail)