Skip to content

Commit 14e7dd5

Browse files
author
Lucas Gameiro
authored
update operator_libs_linux (#439)
1 parent 3a7c3d6 commit 14e7dd5

File tree

1 file changed

+8
-1
lines changed
  • lib/charms/operator_libs_linux/v2

1 file changed

+8
-1
lines changed

lib/charms/operator_libs_linux/v2/snap.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383

8484
# Increment this PATCH version before using `charmcraft publish-lib` or reset
8585
# to 0 if you are raising the major API version
86-
LIBPATCH = 4
86+
LIBPATCH = 5
8787

8888

8989
# Regex to locate 7-bit C1 ANSI sequences
@@ -580,10 +580,17 @@ def ensure(
580580
# We are installing or refreshing a snap.
581581
if self._state not in (SnapState.Present, SnapState.Latest):
582582
# The snap is not installed, so we install it.
583+
logger.info(
584+
"Installing snap %s, revision %s, tracking %s", self._name, revision, channel
585+
)
583586
self._install(channel, cohort, revision)
584587
else:
585588
# The snap is installed, but we are changing it (e.g., switching channels).
589+
logger.info(
590+
"Refreshing snap %s, revision %s, tracking %s", self._name, revision, channel
591+
)
586592
self._refresh(channel=channel, cohort=cohort, revision=revision, devmode=devmode)
593+
logger.info("The snap installation completed successfully")
587594

588595
self._update_snap_apps()
589596
self._state = state

0 commit comments

Comments
 (0)