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

Saravanan Kannan skanan at us.ibm.com
Mon Jul 28 20:17:18 UTC 2008


From:
danms at linux.vnet.ibm.com
To:
libvirt-cim at redhat.com
Cc:
Saravanan Kannan/Boca Raton/IBM at IBMUS
Date:
07/25/2008 03:38 PM
Subject:
[PATCH] Force the namespace into the ResultingSystem reference from 
DefineSystem



# 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",


+1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20080728/34fcfd8a/attachment.htm>


More information about the Libvirt-cim mailing list