
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1216995289 25200 # Node ID 6c42f34929ca88266843f931c69ccf5a09391ef1 # Parent e6f7e3922f86b9ac35c5c9e205dacf8feb88e2a8 Return a reference instead of an instance for ResultingSystem
Signed-off-by: Dan Smith <danms@us.ibm.com
diff -r e6f7e3922f86 -r 6c42f34929ca src/Virt_VirtualSystemManagementService.c --- a/src/Virt_VirtualSystemManagementService.c Thu Jul 24 11:05:22 2008 -0700 +++ b/src/Virt_VirtualSystemManagementService.c Fri Jul 25 07:14:49 2008 -0700 @@ -953,6 +953,7 @@ CMPIArgs *argsout) { CMPIObjectPath *refconf; + CMPIObjectPath *result; CMPIInstance *vssd; CMPIInstance *sys; CMPIArray *res; @@ -972,7 +973,9 @@ if (sys == NULL) goto out;
- CMAddArg(argsout, "ResultingSystem", &sys, CMPI_instance); + result = CMGetObjectPath(sys, &s); + if ((result != NULL) && (s.rc == CMPI_RC_OK)) + CMAddArg(argsout, "ResultingSystem", &result, CMPI_ref);
trigger_indication(context, "ComputerSystemCreatedIndication",
+1 Regards, Sam Kannan Linux Systems Management - WBEMSMT Systems & Technology Group IBM skanan@us.ibm.com