conf: create new RemovalFailed event using correct class

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
(cherry picked from commit be193c4dc6)
This commit is contained in:
Pavel Hrdina 2017-04-07 14:00:22 +02:00 committed by Cole Robinson
parent 6f2b428fd2
commit e495bdef72

View File

@ -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;