diff --git a/src/charm.py b/src/charm.py index 6c7aba2..517b182 100755 --- a/src/charm.py +++ b/src/charm.py @@ -96,8 +96,11 @@ def _on_slurmctld_available(self, event: SlurmctldAvailableEvent) -> None: if (jwt := event.jwt_rsa) is not None: self._slurmdbd_ops_manager.write_jwt_rsa(jwt) + if (munge_key := event.munge_key) is not None: + self._slurmdbd_ops_manager.stop_munge() self._slurmdbd_ops_manager.write_munge_key(munge_key) + self._slurmdbd_ops_manager.start_munge() self._write_config_and_restart_slurmdbd(event)