[Libvirt-cim] [PATCH 2 of 2] Update get_vsm_cap() call in ElementCapabilities

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Wed Nov 28 22:16:51 UTC 2007


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1196288115 28800
# Node ID f26172c947953530556edb530dc8a371d2106c3e
# Parent  34d66c74e3801796f89ca51df93ebff3075c6358
Update get_vsm_cap() call in ElementCapabilities.

The get_vsm_cap() call in VSMC has been changed to include an extra paramater.  The calling function in ElementCapabilities already gets the system / hostname, so all that needs to be done is to pass that value to get_vsm_cap().

Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>

diff -r 34d66c74e380 -r f26172c94795 src/Virt_ElementCapabilities.c
--- a/src/Virt_ElementCapabilities.c	Wed Nov 28 14:15:10 2007 -0800
+++ b/src/Virt_ElementCapabilities.c	Wed Nov 28 14:15:15 2007 -0800
@@ -78,7 +78,7 @@ static CMPIStatus sys_to_cap(const CMPIO
                 goto out;
         }
 
-        s = get_vsm_cap(_BROKER, ref, &inst);
+        s = get_vsm_cap(_BROKER, ref, sys_name, &inst);
         if (s.rc == CMPI_RC_OK)
                 inst_list_add(list, inst);
  out:




More information about the Libvirt-cim mailing list