提交 4fbad2e0 编写于 作者: C Cole Robinson

test: Update inactive guest config on shutdown

This matches the expected behavior of state drivers such as QEMU.
上级 b712bfb4
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册