From 178dd4d20435129dfee0edfc38ddff2468473189 Mon Sep 17 00:00:00 2001 From: Mia Altieri Date: Tue, 12 Nov 2024 11:01:54 +0000 Subject: [PATCH] snyc libs --- lib/charms/mongos/v0/upgrade_helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/charms/mongos/v0/upgrade_helpers.py b/lib/charms/mongos/v0/upgrade_helpers.py index e0422656..25ad2fdd 100644 --- a/lib/charms/mongos/v0/upgrade_helpers.py +++ b/lib/charms/mongos/v0/upgrade_helpers.py @@ -32,7 +32,7 @@ # Increment this PATCH version before using `charmcraft publish-lib` or reset # to 0 if you are raising the major API version -LIBPATCH = 3 +LIBPATCH = 6 logger = logging.getLogger(__name__) @@ -319,10 +319,10 @@ def pre_upgrade_check(self) -> None: See https://chat.canonical.com/canonical/pl/cmf6uhm1rp8b7k8gkjkdsj4mya """ # Until the mongos charm has a config-server there is nothing to check. Allow an upgrade. - if not self.charm.mongos_initialised: + if not self._charm.mongos_initialised: return - if not self.is_mongos_able_to_read_write(): + if not self._charm.upgrade.is_mongos_able_to_read_write(): raise PrecheckFailed("mongos is not able to read/write.")