
# HG changeset patch # User Heidi Eckhart <heidieck@linux.vnet.ibm.com> # Date 1203934189 -3600 # Node ID 875e54efe5feb2f65572c0b4d786081506e65cc8 # Parent 631eee1e6165c349e37e9552ff65c95726f72e4b EC: adopt interface changes to ELEC Signed-off-by: Heidi Eckhart <heidieck@linux.vnet.ibm.com> diff -r 631eee1e6165 -r 875e54efe5fe src/Virt_ElementCapabilities.c --- a/src/Virt_ElementCapabilities.c Mon Feb 25 11:09:48 2008 +0100 +++ b/src/Virt_ElementCapabilities.c Mon Feb 25 11:09:49 2008 +0100 @@ -216,7 +216,7 @@ static CMPIStatus cs_to_cap(const CMPIOb goto out; } - s = get_ele_cap(_BROKER, ref, sys_name, &inst); + s = get_elec_by_name(_BROKER, ref, sys_name, &inst); if (s.rc == CMPI_RC_OK) inst_list_add(list, inst); @@ -234,6 +234,10 @@ static CMPIStatus cap_to_cs(const CMPIOb CMPIStatus s = {CMPI_RC_OK, NULL}; if (!match_hypervisor_prefix(ref, info)) + goto out; + + s = get_elec_by_ref(_BROKER, ref, &inst); + if (s.rc != CMPI_RC_OK) goto out; if (cu_get_str_path(ref, "InstanceID", &inst_id) != CMPI_RC_OK) {