Skip to content

Commit

Permalink
Low: libpacemaker: Correct sys_from default in pacemakerd_health()
Browse files Browse the repository at this point in the history
sys_from should be a subsystem ("pacemakerd" is expected), not a node.

Signed-off-by: Reid Wahl <[email protected]>
  • Loading branch information
nrwahl2 committed Oct 11, 2022
1 parent 6dd3934 commit 2af7741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pacemaker/pcmk_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ pacemakerd_health(pcmk__output_t *out, va_list args)
state_s = pcmk__pcmkd_state_enum2friendly(state);
}
return out->info(out, "Status of %s: '%s' (last updated %s)",
pcmk__s(sys_from, "unknown node"), state_s,
pcmk__s(sys_from, "unknown subsystem"), state_s,
pcmk__s(last_updated, "at unknown time"));
}

Expand All @@ -683,7 +683,7 @@ pacemakerd_health_html(pcmk__output_t *out, va_list args)
}

msg = crm_strdup_printf("Status of %s: '%s' (last updated %s)",
pcmk__s(sys_from, "unknown node"), state_s,
pcmk__s(sys_from, "unknown subsystem"), state_s,
pcmk__s(last_updated, "at unknown time"));
pcmk__output_create_html_node(out, "li", NULL, NULL, msg);

Expand Down

0 comments on commit 2af7741

Please sign in to comment.