Skip to content

Commit

Permalink
[DPE-6219] Only specify snap revision at install
Browse files Browse the repository at this point in the history
Closes #523
  • Loading branch information
phvalguima authored Dec 12, 2024
1 parent 8b7e872 commit 0b1af5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ def install_snap_packages(self, packages: List[Package]) -> None:
snap_cache = snap.SnapCache()
snap_package = snap_cache[snap_name]
snap_package.ensure(
snap.SnapState.Latest, channel=snap_channel, revision=snap_revision
snap.SnapState.Latest, revision=snap_revision
)
# snaps will auto refresh so it is necessary to hold the current revision
snap_package.hold()
Expand Down

0 comments on commit 0b1af5a

Please sign in to comment.