mirror of https://gitee.com/openkylin/libvirt.git
conf: create new RemovalFailed event using correct class
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
d58c146a4f
commit
be193c4dc6
|
@ -1443,7 +1443,7 @@ virDomainEventDeviceRemovalFailedNew(int id,
|
|||
if (virDomainEventsInitialize() < 0)
|
||||
return NULL;
|
||||
|
||||
if (!(ev = virDomainEventNew(virDomainEventDeviceAddedClass,
|
||||
if (!(ev = virDomainEventNew(virDomainEventDeviceRemovalFailedClass,
|
||||
VIR_DOMAIN_EVENT_ID_DEVICE_REMOVAL_FAILED,
|
||||
id, name, uuid)))
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue