Skip to content

Commit

Permalink
Update charm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phvalguima authored Dec 12, 2024
1 parent 0b1af5a commit 620893f
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 @@ -1058,9 +1058,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, 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 620893f

Please sign in to comment.