# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1204286657 -3600
# Node ID 9516232d810b1b7a0e5c9da5801ef96fdbc1775e
# Parent a637832c90faefaf61e674740089774baca4abb9
EC: adopt HostSystem interface changes
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r a637832c90fa -r 9516232d810b src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Fri Feb 29 13:04:16 2008 +0100
+++ b/src/Virt_ElementCapabilities.c Fri Feb 29 13:04:17 2008 +0100
@@ -125,13 +125,13 @@ static CMPIStatus sys_to_cap(const CMPIO
struct std_assoc_info *info,
struct inst_list *list)
{
- CMPIInstance *inst;
- CMPIStatus s = {CMPI_RC_OK, NULL};
-
- if (!match_hypervisor_prefix(ref, info))
- goto out;
-
- s = validate_host_ref(_BROKER, ref);
+ CMPIInstance *inst = NULL;
+ CMPIStatus s = {CMPI_RC_OK, NULL};
+
+ if (!match_hypervisor_prefix(ref, info))
+ goto out;
+
+ s = get_host(_BROKER, ref, &inst, true);
if (s.rc != CMPI_RC_OK)
goto out;
@@ -164,7 +164,7 @@ static CMPIStatus cap_to_sys_or_service(
if (inst != NULL)
inst_list_add(list, inst);
- s = get_host_cs(_BROKER, ref, &inst);
+ s = get_host(_BROKER, ref, &inst, false);
if (s.rc != CMPI_RC_OK)
goto out;