]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: Use virStoragePoolObjGetDef accessor for new driver events
authorJohn Ferlan <jferlan@redhat.com>
Fri, 6 Oct 2017 14:31:34 +0000 (10:31 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 7 Nov 2017 19:12:52 +0000 (14:12 -0500)
Missed from merge from commit id 'b0652192' into commit id 'bfcd8fc92'
were a couple of obj->def-> references.

src/storage/storage_driver.c

index b0edf9f885a5a66c42f868e6e11a89321e282efa..2b7a299706a0f3875ef3e08e3dfc789fe7565962 100644 (file)
@@ -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);