1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[openstack|image] Fix image reload

Instead of returning the cached image in collection, get (or find_by_id) method
should refresh the image data. This will fix the reload method, as actually it
doesn't really reload the image details.
This commit is contained in:
Ferran Rodenas 2013-07-03 00:30:38 +02:00
parent dd10f93006
commit 212274b832

View file

@ -16,7 +16,7 @@ module Fog
end
def find_by_id(id)
self.find {|image| image.id == id}
all.find {|image| image.id == id}
end
alias_method :get, :find_by_id