[Libvirt-cim] [PATCH] Force the namespace into the ResultingSystem reference from DefineSystem

Dan Smith danms at us.ibm.com
Fri Jul 25 19:41:23 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1217014881 25200
# Node ID 949e4c0f1e7c1c04d4875d7a6566240385af1656
# Parent  466808eaaefaf26e1200ab6ce57dc7b96b9ee7c7
Force the namespace into the ResultingSystem reference from DefineSystem

...since Pegasus drops it by default.

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

diff -r 466808eaaefa -r 949e4c0f1e7c src/Virt_VirtualSystemManagementService.c
--- a/src/Virt_VirtualSystemManagementService.c	Fri Jul 25 12:03:28 2008 -0700
+++ b/src/Virt_VirtualSystemManagementService.c	Fri Jul 25 12:41:21 2008 -0700
@@ -984,8 +984,10 @@
                 goto out;
 
         result = CMGetObjectPath(sys, &s);
-        if ((result != NULL) && (s.rc == CMPI_RC_OK))
+        if ((result != NULL) && (s.rc == CMPI_RC_OK)) {
+                CMSetNameSpace(result, NAMESPACE(reference));
                 CMAddArg(argsout, "ResultingSystem", &result, CMPI_ref);
+        }
 
         trigger_indication(context,
                            "ComputerSystemCreatedIndication",




More information about the Libvirt-cim mailing list