Skip to content

Commit

Permalink
snyc libs
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Nov 12, 2024
1 parent 4ee5de8 commit 178dd4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/charms/mongos/v0/upgrade_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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.")


Expand Down

0 comments on commit 178dd4d

Please sign in to comment.