From 86f8bdb39590c6e9e1aba4a7e0f331018cae3a0f Mon Sep 17 00:00:00 2001 From: benoit Date: Wed, 8 Dec 2021 17:23:56 +0100 Subject: [PATCH] Readme: perfdata for not_tl_has_changed --- README.md | 3 ++- check_patroni/cli.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5601bd4..96782e5 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/check_patroni/cli.py b/check_patroni/cli.py index cc82228..7fbe4a6 100644 --- a/check_patroni/cli.py +++ b/check_patroni/cli.py @@ -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