| 1226 | } |
| 1227 | |
| 1228 | action_t * |
| 1229 | pe_fence_op(node_t *node, const char *op, pe_working_set_t * data_set) |
| 1230 | { |
| 1231 | action_t *stonith_op = custom_action( |
| 1232 | NULL, g_strdup_printf("%s-%s", CRM_OP_FENCE, node->details->uname), |
| 1233 | CRM_OP_FENCE, node, FALSE, TRUE, data_set); |
| 1234 | |
| 1235 | add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET, node->details->uname); |
| 1236 | |
| 1237 | add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET_UUID, node->details->id); |
| 1238 | |
| 1239 | add_hash_param(stonith_op->meta, "stonith_action", op?op:data_set->stonith_action); |
| 1240 | |
| 1241 | return stonith_op; |
| 1242 | } |
| 1243 | |
| 1244 | |
| 1245 | /* |
no test coverage detected