Skip to content

Commit

Permalink
fixup! Make provider upgradable; Add logic to correctly switch betwee…
Browse files Browse the repository at this point in the history
…n channels
  • Loading branch information
root-expert committed Sep 11, 2024
1 parent 366e5f3 commit f5cc49d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet/provider/package/snap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def self.instances

def query
Puppet.info('called query')
Puppet.info("@installed_snaps = #{installed_snaps}")
installed = @installed_snaps&.find { |it| it.name == @resource['name'] }
Puppet.info("installed #{installed}")
{ ensure: installed.ensure, name: @resource[:name] } if installed
Expand Down

0 comments on commit f5cc49d

Please sign in to comment.