From ba6575e2f6a711a78c3db700a7517a9702e7b2df Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Fri, 6 Oct 2017 10:31:34 -0400 Subject: [PATCH] storage: Use virStoragePoolObjGetDef accessor for new driver events Missed from merge from commit id 'b0652192' into commit id 'bfcd8fc92' were a couple of obj->def-> references. --- src/storage/storage_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index b0edf9f885..2b7a299706 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -994,8 +994,8 @@ storagePoolBuild(virStoragePoolPtr pool, backend->buildPool(pool->conn, obj, flags) < 0) goto cleanup; - event = virStoragePoolEventLifecycleNew(obj->def->name, - obj->def->uuid, + event = virStoragePoolEventLifecycleNew(def->name, + def->uuid, VIR_STORAGE_POOL_EVENT_CREATED, 0); @@ -1128,8 +1128,8 @@ storagePoolDelete(virStoragePoolPtr pool, if (backend->deletePool(pool->conn, obj, flags) < 0) goto cleanup; - event = virStoragePoolEventLifecycleNew(obj->def->name, - obj->def->uuid, + event = virStoragePoolEventLifecycleNew(def->name, + def->uuid, VIR_STORAGE_POOL_EVENT_DELETED, 0); -- GitLab