File pacemaker-fencing-topology-1.patch of Package pacemaker.3577
commit fb8be40a7c300bbd219a676adf3d3dc54c44c393
Author: Hideo Yamauchi <renayama19661014@ybb.ne.jp>
Date: Fri Dec 25 11:49:46 2015 +0900
High: fencing: topology is not used
12ca8bb introduced a regression such that only the last
level of a fencing topology is used.
diff --git a/fencing/commands.c b/fencing/commands.c
index df613a6..a81a251 100644
--- a/fencing/commands.c
+++ b/fencing/commands.c
@@ -1279,7 +1279,7 @@ stonith_level_remove(xmlNode *msg, char **desc)
CRM_CHECK(level != NULL, return -EINVAL);
target = stonith_level_key(level, -1);
- crm_element_value_int(level, XML_ATTR_ID, &id);
+ crm_element_value_int(level, XML_ATTR_STONITH_INDEX, &id);
if (desc) {
*desc = crm_strdup_printf("%s[%d]", target, id);
}