[lib] Ignore ESX VCs in tabula_rasa().
authorMaximilian Wilhelm <max@rfc2324.org>
Tue, 3 Nov 2009 18:32:16 +0000 (19:32 +0100)
committerMaximilian Wilhelm <max@rfc2324.org>
Tue, 3 Nov 2009 18:32:16 +0000 (19:32 +0100)
Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

lib/core.c

index 3b96a81..9cccdb4 100644 (file)
@@ -373,6 +373,10 @@ vsc_mgmt_tabula_rasa (struct VscError *error,
                host = hosts->hosts[host_id];
                conn = host->connection;
 
+               /* A ESX VC does not have an machines by itself */
+               if (host->info.type == VSC_MGMT__HOST_TYPE__ESX_VCENTER)
+                       continue;
+
                /*
                 * Query the list of the IDs of all active domains with at least
                 * MAX_DOMAIN_IDS entries, as long as there are VMs on the host.