From 93b196fb77b76ec2ff8aabc7d4655c17be4cf9d6 Mon Sep 17 00:00:00 2001 From: benoit Date: Thu, 2 Mar 2023 12:04:29 +0100 Subject: [PATCH] Fix a format string for cluster_config_has_changed --- check_patroni/cluster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_patroni/cluster.py b/check_patroni/cluster.py index 9ad9ec2..94412cc 100644 --- a/check_patroni/cluster.py +++ b/check_patroni/cluster.py @@ -179,7 +179,7 @@ class ClusterConfigHasChangedSummary(nagiosplugin.Summary): def problem( self: "ClusterConfigHasChangedSummary", results: nagiosplugin.Result ) -> str: - return "The hash of patroni's dynamic configuration has changed. The old hash was {self.old_config_hash}." + return f"The hash of patroni's dynamic configuration has changed. The old hash was {self.old_config_hash}." class ClusterIsInMaintenance(PatroniResource):