Skip to content

Commit

Permalink
Merge pull request #1309 from HideoYamauchi/correct_alert
Browse files Browse the repository at this point in the history
Mid: lrmd: Fix resource trap transmission.
  • Loading branch information
kgaillot authored Jul 19, 2017
2 parents f4d4432 + f77d4fc commit 226bc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lrmd/lrmd_alerts.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ lrmd_send_resource_alert(GList *alert_list, lrmd_t *(*lrmd_connect_func)(void),
params = alert_key2param_int(params, CRM_alert_rc, op->rc);

if (op->op_status == PCMK_LRM_OP_DONE) {
crm_set_alert_key(CRM_alert_desc, services_ocf_exitcode_str(op->rc));
params = alert_key2param(params, CRM_alert_desc, services_ocf_exitcode_str(op->rc));
} else {
crm_set_alert_key(CRM_alert_desc, services_lrm_status_str(op->op_status));
params = alert_key2param(params, CRM_alert_desc, services_lrm_status_str(op->op_status));
}

rc = exec_alert_list(alert_list, lrmd_connect_func, crm_alert_resource,
Expand Down

0 comments on commit 226bc4b

Please sign in to comment.