mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
qemu: save status xml after generating taint message
We didn't always save status xml after generating new taint message which resulted in it being deleted in case of a libvirtd restart. Some taint messages were preserved thanks to saving status xml separately at the end of the calling functions. With this, every taint message is saved, regardless of the calling functions. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1965589 Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c6bcc4753d
commit
878cbd0f6a
@ -6463,7 +6463,10 @@ void qemuDomainObjTaint(virQEMUDriver *driver,
|
||||
virDomainTaintFlags taint,
|
||||
qemuDomainLogContext *logCtxt)
|
||||
{
|
||||
g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
|
||||
|
||||
qemuDomainObjTaintMsg(driver, obj, taint, logCtxt, NULL);
|
||||
ignore_value(virDomainObjSave(obj, driver->xmlopt, cfg->stateDir));
|
||||
}
|
||||
|
||||
void qemuDomainObjTaintMsg(virQEMUDriver *driver,
|
||||
|
Loading…
x
Reference in New Issue
Block a user