
# HG changeset patch # User Heidi Eckhart <heidieck@linux.vnet.ibm.com> # Date 1204016904 -3600 # Node ID 8ce1fe84f5831b7f3e32832901845a749a429c78 # Parent 308a23419d5182dfab9febc1ae6c08ae2a45613c EC: adopt interface changes to ELEC Signed-off-by: Heidi Eckhart <heidieck@linux.vnet.ibm.com> diff -r 308a23419d51 -r 8ce1fe84f583 src/Virt_ElementCapabilities.c --- a/src/Virt_ElementCapabilities.c Tue Feb 26 10:07:17 2008 +0100 +++ b/src/Virt_ElementCapabilities.c Tue Feb 26 10:08:24 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) {