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:
parent
dd10f93006
commit
212274b832
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue