[Libvirt-cim] [PATCH 02 of 27] Fix uses of get_typed_*() in ComputerSystem

Dan Smith danms at us.ibm.com
Mon Nov 19 18:25:54 UTC 2007


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1195496766 28800
# Node ID aca1440f3971d2f4068fa0c957a7729428af8b1d
# Parent  b1d53e304e5dc88a3f57b303838926d31c8f0a7e
Fix uses of get_typed_*() in ComputerSystem

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r b1d53e304e5d -r aca1440f3971 src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c	Mon Nov 19 10:24:48 2007 -0800
+++ b/src/Virt_ComputerSystem.c	Mon Nov 19 10:26:06 2007 -0800
@@ -288,6 +288,7 @@ CMPIInstance *instance_from_name(const C
                 return 0;
 
         instance = get_typed_instance(broker,
+                                      pfx_from_conn(conn),
                                       "ComputerSystem",
                                       NAMESPACE(op));
         if (instance == NULL)
@@ -319,7 +320,10 @@ int enum_domains(const CMPIBroker *broke
         for (i = 0; i < count; i++) {
                 CMPIInstance *inst;
 
-                inst = get_typed_instance(broker, "ComputerSystem", ns);
+                inst = get_typed_instance(broker,
+                                          pfx_from_conn(conn),
+                                          "ComputerSystem",
+                                          ns);
                 if (inst == NULL)
                         goto end;
 




More information about the Libvirt-cim mailing list