From a1cf7df5da7a7d4e7826487c82170382de99eff4 Mon Sep 17 00:00:00 2001 From: alesstimec Date: Wed, 12 Jul 2023 13:47:53 +0200 Subject: [PATCH] Remove the jimm snap before attempting to install it. --- charms/jimm/src/charm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charms/jimm/src/charm.py b/charms/jimm/src/charm.py index f352411e9..b98b4b8fc 100755 --- a/charms/jimm/src/charm.py +++ b/charms/jimm/src/charm.py @@ -275,6 +275,9 @@ def _install_snap(self): if not path: self.unit.status = BlockedStatus("waiting for jimm-snap resource") return + # remove the jimm snap if it is already installed. + self._snap("remove", "jimm") + # install the new jimm snap. self._snap("install", "--dangerous", path) def _setup_logging(self):