check-patroni/check_patroni
benoit 908669f073 Add a --save option when state files are used
The checks `cluster_config_has_changed` and `node_tl_has_changed` use a
state file to store the previous value of the config hash and the
timeline.

Previously the check would fail if something changed, but the new value
would be saved directly. This behavious has changed. The new value
is saved only if `--save` is passed to the check.

The mimics the way [check_pgactivity] manages this kind of checks.

[check_pgactivity]: https://github.com/OPMDG/check_pgactivity
2023-03-02 17:32:18 +01:00
..
__init__.py Release 0.1.1 2022-07-15 11:16:19 +02:00
__main__.py Initial commit 2021-07-02 12:37:03 +02:00
cli.py Add a --save option when state files are used 2023-03-02 17:32:18 +01:00
cluster.py Add a --save option when state files are used 2023-03-02 17:32:18 +01:00
convert.py Shame on meeeeee 2021-08-13 14:52:20 +02:00
node.py Add a --save option when state files are used 2023-03-02 17:32:18 +01:00
types.py An attempt at correctly ordering imports 2022-02-07 15:11:05 +01:00