diff --git a/src/charm.py b/src/charm.py index 9487b20a..b816a31e 100755 --- a/src/charm.py +++ b/src/charm.py @@ -187,12 +187,13 @@ def _on_config_changed(self, _: HookEvent) -> None: Args: event: Event triggering the config change handler. """ - self._change_config() + self._configure_pod() def _setup_and_activate(self) -> None: + """Set up discourse, configure the pod and eventually activate the charm.""" if not self._is_setup_completed(): self._set_up_discourse() - self._change_config() + self._configure_pod() if self._are_relations_ready(): self._activate_charm() @@ -611,7 +612,7 @@ def _set_up_discourse(self) -> None: logger.exception("Setting up discourse failed with code %d.", cmd_err.exit_code) raise - def _change_config(self) -> None: + def _configure_pod(self) -> None: """Configure pod using pebble and layer generated from config. Args: