mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-09 06:25:19 +00:00
test: Update inactive guest config on shutdown
This matches the expected behavior of state drivers such as QEMU.
This commit is contained in:
parent
b712bfb46c
commit
4fbad2e049
@ -473,6 +473,12 @@ static void
|
||||
testDomainShutdownState(virDomainPtr domain,
|
||||
virDomainObjPtr privdom)
|
||||
{
|
||||
if (privdom->newDef) {
|
||||
virDomainDefFree(privdom->def);
|
||||
privdom->def = privdom->newDef;
|
||||
privdom->newDef = NULL;
|
||||
}
|
||||
|
||||
privdom->state = VIR_DOMAIN_SHUTOFF;
|
||||
privdom->def->id = -1;
|
||||
domain->id = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user