From:
danms(a)linux.vnet.ibm.com
To:
libvirt-cim(a)redhat.com
Cc:
Saravanan Kannan/Boca Raton/IBM@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(a)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(a)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