| 309 | } |
| 310 | |
| 311 | static void |
| 312 | update_failcounts(xmlNode * cib_node, const char *resource, int interval, int rc) |
| 313 | { |
| 314 | if (rc == 0) { |
| 315 | return; |
| 316 | |
| 317 | } else if (rc == 7 && interval == 0) { |
| 318 | return; |
| 319 | |
| 320 | } else { |
| 321 | char *name = NULL; |
| 322 | char *now = crm_itoa(time(NULL)); |
| 323 | |
| 324 | name = crm_concat("fail-count", resource, '-'); |
| 325 | inject_transient_attr(cib_node, name, "value++"); |
| 326 | |
| 327 | name = crm_concat("last-failure", resource, '-'); |
| 328 | inject_transient_attr(cib_node, name, now); |
| 329 | |
| 330 | free(name); |
| 331 | free(now); |
| 332 | } |
| 333 | } |
| 334 | |
| 335 | static gboolean |
| 336 | exec_pseudo_action(crm_graph_t * graph, crm_action_t * action) |
no test coverage detected