[libvirt] [PATCH 2/2] conf: create new RemovalFailed event using correct class

Pavel Hrdina phrdina at redhat.com
Fri Apr 7 12:04:03 UTC 2017


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 src/conf/domain_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/domain_event.c b/src/conf/domain_event.c
index c15f32a4e6..6e471d7ddb 100644
--- a/src/conf/domain_event.c
+++ b/src/conf/domain_event.c
@@ -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;
-- 
2.12.2




More information about the libvir-list mailing list