Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent refresh by revision when the snap is already on that revision #121

Merged
merged 6 commits into from
May 24, 2024

Conversation

addyess
Copy link
Contributor

@addyess addyess commented May 17, 2024

Addresses issue #120

snap refresh --revision=xyz causes snapd to restart the service provided by that snap, even if the revision is already on the machine. In this limited case, we should not refresh the snap if it is already on the correct revision.

@addyess
Copy link
Contributor Author

addyess commented May 17, 2024

@benhoyt -- tagging for review

Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of minor nit suggestions. But we also need to bump up the LIBPATCH version at the top of this file.

lib/charms/operator_libs_linux/v2/snap.py Outdated Show resolved Hide resolved
lib/charms/operator_libs_linux/v2/snap.py Outdated Show resolved Hide resolved
tests/unit/test_snap.py Outdated Show resolved Hide resolved
tests/unit/test_snap.py Outdated Show resolved Hide resolved
@benhoyt
Copy link
Collaborator

benhoyt commented May 24, 2024

Opened #123 to track fixing the integration test.

@benhoyt benhoyt merged commit 522d54e into canonical:main May 24, 2024
5 of 6 checks passed
@addyess addyess deleted the issue/120/refresh-by-revision branch May 24, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants