13 lines
612 B
Diff
13 lines
612 B
Diff
|
diff --git a/fencing/commands.c b/fencing/commands.c
|
||
|
index 8269d30..b2660ca 100644
|
||
|
--- a/fencing/commands.c
|
||
|
+++ b/fencing/commands.c
|
||
|
@@ -368,6 +368,7 @@ static stonith_device_t *build_device_from_xml(xmlNode *msg)
|
||
|
device->agent = crm_element_value_copy(dev, "agent");
|
||
|
device->namespace = crm_element_value_copy(dev, "namespace");
|
||
|
device->params = xml2list(dev);
|
||
|
+ g_hash_table_insert(device->params, crm_strdup("CRM_" F_STONITH_DEVICE), crm_strdup(device->id));
|
||
|
device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device);
|
||
|
/* TODO: Hook up priority */
|
||
|
|