canonical / operator-libs-linux

Linux helper libraries for the operator framework
Apache License 2.0
11 stars 37 forks source link

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

Closed addyess closed 3 months ago

addyess commented 4 months ago

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 commented 4 months ago

@benhoyt -- tagging for review

benhoyt commented 3 months ago

Opened https://github.com/canonical/operator-libs-linux/issues/123 to track fixing the integration test.