Skip to content

Commit

Permalink
Remove the jimm snap before attempting to install it.
Browse files Browse the repository at this point in the history
  • Loading branch information
alesstimec committed Jul 12, 2023
1 parent 27339bc commit a1cf7df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charms/jimm/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a1cf7df

Please sign in to comment.