[Libvirt-cim] [PATCH 2 of 2] EC: adopt interface changes to ELEC

Heidi Eckhart heidieck at linux.vnet.ibm.com
Thu Feb 21 12:10:26 UTC 2008


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1203594913 -3600
# Node ID 6fffc34df9c9b5cd1915f1fdd9f196b1f12a2477
# Parent  0edc1241e58d872c251473c424758a425efa19b6
EC: adopt interface changes to ELEC
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r 0edc1241e58d -r 6fffc34df9c9 src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c	Thu Feb 21 12:52:21 2008 +0100
+++ b/src/Virt_ElementCapabilities.c	Thu Feb 21 12:55:13 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) {




More information about the Libvirt-cim mailing list