diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 78a7a9f8b935c5bfb77fcc8b6f3defb8e731fb51..96be02e66e9d6cbf45bd7267a426146975b61750 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -1989,6 +1989,10 @@ virStorageSourceIsEmpty(virStorageSourcePtr src) if (src->type == VIR_STORAGE_TYPE_NONE) return true; + if (src->type == VIR_STORAGE_TYPE_NETWORK && + src->protocol == VIR_STORAGE_NET_PROTOCOL_NONE) + return true; + return false; }