Skip to content

Commit

Permalink
fix: update lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Nov 8, 2024
1 parent 66bd30b commit b3e44e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 = 5

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -229,7 +229,7 @@ def app_status(self) -> Optional[StatusBase]:
return

return MaintenanceStatus(
"Refreshing. To rollback, `juju refresh` to the previous revision"
"Refresing. To rollback, `juju refresh` to the previous revision"
)

@property
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 b3e44e9

Please sign in to comment.