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 Jun 1, 2024
1 parent 524fb49 commit d44bc99
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/puppet/provider/package/snap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ def self.instances

def query
installed = self.class.instances.find { |it| it.name == @resource['name'] }
if installed
{ ensure: installed[:ensure], name: @resource[:name] }
else
nil
end
{ ensure: installed[:ensure], name: @resource[:name] } if installed
end

def install
Expand Down

0 comments on commit d44bc99

Please sign in to comment.