diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index f609f85762..313098bbe1 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -2412,6 +2412,9 @@ virStoragePoolSourceMatchSingleHost(virStoragePoolSourcePtr poolsrc, if (poolsrc->nhost != 1 && defsrc->nhost != 1) return false; + if (poolsrc->hosts[0].port != defsrc->hosts[0].port) + return false; + return STREQ(poolsrc->hosts[0].name, defsrc->hosts[0].name); }