Skip to content

Commit

Permalink
fix: rename from __ to _
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Oct 14, 2024
1 parent e33daa1 commit 4731735
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def _compare_secret_ids(secret_id1: str, secret_id2: str) -> bool:
return pure_id1 == pure_id2
return False

def __filesystem_handler(self, container: Container) -> None:
def _filesystem_handler(self, container: Container) -> None:
"""Pushes files on the container and handle permissions."""
try:
# mongod needs keyFile and TLS certificates on filesystem
Expand All @@ -601,7 +601,7 @@ def __filesystem_handler(self, container: Container) -> None:
logger.error("Cannot initialize workload: %r", e)
raise FailedToUpdateFilesystem

def __configure_layers(self, container: Container) -> None:
def _configure_layers(self, container: Container) -> None:
"""Configure the layers of the container."""
modified = False
current_layers = container.get_plan()
Expand Down Expand Up @@ -640,11 +640,11 @@ def _configure_container(self, container: Container) -> None:
raise ContainerNotReadyError

try:
self.__filesystem_handler(container)
self._filesystem_handler(container)
except FailedToUpdateFilesystem as err:
raise ContainerNotReadyError from err

self.__configure_layers(container)
self._configure_layers(container)

# when a network cuts and the pod restarts - reconnect to the exporter
try:
Expand Down

0 comments on commit 4731735

Please sign in to comment.