Skip to content

Commit

Permalink
[DPE-6219] Only specify snap revision at install (#524)
Browse files Browse the repository at this point in the history
Closes #523
  • Loading branch information
phvalguima authored Dec 13, 2024
1 parent 0b571ba commit c74db02
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,9 +1067,7 @@ def install_snap_packages(self, packages: List[Package]) -> None:
try:
snap_cache = snap.SnapCache()
snap_package = snap_cache[snap_name]
snap_package.ensure(
snap.SnapState.Latest, channel=snap_channel, revision=snap_revision
)
snap_package.ensure(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 c74db02

Please sign in to comment.