# HG changeset patch
# User Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
# Date 1204540491 -3600
# Node ID 9b3626d6b286b7e7190b4a760c349a45985ec5f2
# Parent 74515c28683ce659b54af726d7bc5cec62995df1
EC: adopt HostSystem interface changes
Signed-off-by: Heidi Eckhart <heidieck(a)linux.vnet.ibm.com>
diff -r 74515c28683c -r 9b3626d6b286 src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c Mon Mar 03 11:28:02 2008 +0100
+++ b/src/Virt_ElementCapabilities.c Mon Mar 03 11:34:51 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;