From: Geoff Hickey Date: Wed, 16 Jul 2014 21:50:21 +0000 (-0400) Subject: esx: Fix a bug in the XML code for storage pools X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=861eced6f41df0f677d3bbf024e44af31c2b26e3;p=libvirt.git esx: Fix a bug in the XML code for storage pools For ESX, the code that builds XML descriptions for attached storage pools was not setting the host count to anything when it returned a host name. --- diff --git a/src/esx/esx_storage_backend_vmfs.c b/src/esx/esx_storage_backend_vmfs.c index 6bed3ce20e..cf0da8445c 100644 --- a/src/esx/esx_storage_backend_vmfs.c +++ b/src/esx/esx_storage_backend_vmfs.c @@ -488,6 +488,7 @@ esxStoragePoolGetXMLDesc(virStoragePoolPtr pool, unsigned int flags) if (VIR_ALLOC_N(def.source.hosts, 1) < 0) goto cleanup; def.type = VIR_STORAGE_POOL_NETFS; + def.source.nhost = 1; def.source.hosts[0].name = nasInfo->nas->remoteHost; def.source.dir = nasInfo->nas->remotePath;