Permalink
Browse files

Fix: crm_mon: Look for the correct error codes when applying configur…

…ation updates
  • Loading branch information...
1 parent 70b292b commit d8462dc68d1764adf3339562f5963fe241b5588d @beekhof committed Feb 28, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 tools/crm_mon.c
View
@@ -2140,14 +2140,13 @@ crm_diff_update(const char *event, xmlNode * msg)
free_xml(cib_last);
switch (rc) {
- case pcmk_err_diff_resync:
- case pcmk_err_diff_failed:
+ case -pcmk_err_diff_resync:
+ case -pcmk_err_diff_failed:
crm_warn("[%s] Patch aborted: %s (%d)", event, pcmk_strerror(rc), rc);
case pcmk_ok:
break;
default:
crm_warn("[%s] ABORTED: %s (%d)", event, pcmk_strerror(rc), rc);
- return;
}
}

0 comments on commit d8462dc

Please sign in to comment.