Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! Make provider upgradable; A…
Browse files Browse the repository at this point in the history
…dd logic to correctly switch between channels
  • Loading branch information
root-expert committed Sep 12, 2024
1 parent 478430a commit 0fbfb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/package/snap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def install

Puppet.info("current_ensure = #{current_ensure}")
# Refresh the snap if we changed the channel
if current_ensure != @resource[:ensure] && %i[absent, purged].include?(current_ensure)
if current_ensure != @resource[:ensure] && %i[absent purged].include?(current_ensure)
Puppet.info('modify snap')
modify_snap('refresh') # Refresh will switch the channel AND trigger a refresh immediately. TODO Implement switch?
else
Expand Down

0 comments on commit 0fbfb97

Please sign in to comment.