diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index 18cbfdb579..dadc115afc 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -1711,6 +1711,10 @@ int virStoragePoolSourceFindDuplicate(virStoragePoolObjListPtr pools, if (def->type != pool->def->type) continue; + /* Don't mach against ourself if re-defining existing pool ! */ + if (STREQ(pool->def->name, def->name)) + continue; + virStoragePoolObjLock(pool); switch (pool->def->type) {