mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
storage: Use virStoragePoolObjDefUseNewDef
Use the new accessor API for storage_driver.
This commit is contained in:
parent
67129bb435
commit
d085197ce2
@ -94,10 +94,8 @@ virStoragePoolUpdateInactive(virStoragePoolObjPtr *objptr)
|
||||
if (!virStoragePoolObjGetConfigFile(obj)) {
|
||||
virStoragePoolObjRemove(&driver->pools, obj);
|
||||
*objptr = NULL;
|
||||
} else if (obj->newDef) {
|
||||
virStoragePoolDefFree(obj->def);
|
||||
obj->def = obj->newDef;
|
||||
obj->newDef = NULL;
|
||||
} else if (virStoragePoolObjGetNewDef(obj)) {
|
||||
virStoragePoolObjDefUseNewDef(obj);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user