Readme: perfdata for not_tl_has_changed

This commit is contained in:
benoit 2021-12-08 17:23:56 +01:00
parent df58901fd9
commit 86f8bdb395
2 changed files with 4 additions and 2 deletions

View file

@ -307,7 +307,8 @@ Usage: check_patroni node_tl_has_changed [OPTIONS]
* `CRITICAL`: The tl is not the same.
Perfdata :
* `is_configuration_changed` is 1 if the configuration has changed, 0 otherwise
* `is_timeline_changed` is 1 if the tl has changed, 0 otherwise
* the timeline
Options:
--timeline TEXT A timeline number to compare with.

View file

@ -459,7 +459,8 @@ def node_tl_has_changed(ctx: click.Context, timeline: str, state_file: str) -> N
\b
Perfdata :
* `is_configuration_changed` is 1 if the configuration has changed, 0 otherwise
* `is_timeline_changed` is 1 if the tl has changed, 0 otherwise
* the timeline
"""
if (timeline is None and state_file is None) or (
timeline is not None and state_file is not None