# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1214852562 25200
# Node ID 25963f4ea20e26b353d11d4d6f394ae38ce09e9e
# Parent 0734a17d5aa18239e8a53b1131ccc02dfecc4874
Make ComputerSystem trigger CSI on RequestStateChange
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 0734a17d5aa1 -r 25963f4ea20e src/Virt_ComputerSystem.c
--- a/src/Virt_ComputerSystem.c Mon Jun 30 11:28:12 2008 -0700
+++ b/src/Virt_ComputerSystem.c Mon Jun 30 12:02:42 2008 -0700
@@ -39,6 +39,7 @@
#include "device_parsing.h"
#include <libcmpiutil/std_invokemethod.h>
#include <libcmpiutil/std_instance.h>
+#include <libcmpiutil/std_indication.h>
#include "Virt_ComputerSystem.h"
#include "Virt_HostSystem.h"
@@ -880,9 +881,19 @@
s = __state_change(name, state, reference);
- if (s.rc == CMPI_RC_OK)
+ if (s.rc == CMPI_RC_OK) {
+ char *type;
+
+ type = get_typed_class(CLASSNAME(reference),
+ "ComputerSystemModifiedIndication");
+
+ /* Failure to raise the indication is okay */
+ stdi_trigger_indication(_BROKER,
+ context,
+ type,
+ NAMESPACE(reference));
rc = 0;
-
+ }
out:
CMReturnData(results, &rc, CMPI_uint32);