Skip to content

Commit

Permalink
fix kernel selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Borisov committed Sep 25, 2015
1 parent a190c4f commit 28f36d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/linode/models/compute/kernels.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def all
end

def get(id)
new kernels(id).first
new kernels(id).select {|kernel| kernel[:id] == id }.first
rescue Fog::Compute::Linode::NotFound
nil
end
Expand Down

0 comments on commit 28f36d0

Please sign in to comment.