From 212274b83253fbdf9a7f91b18963f27f8bad7ca6 Mon Sep 17 00:00:00 2001 From: Ferran Rodenas Date: Wed, 3 Jul 2013 00:30:38 +0200 Subject: [PATCH] [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. --- lib/fog/openstack/models/image/images.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/openstack/models/image/images.rb b/lib/fog/openstack/models/image/images.rb index 1e8062b8a..c0121e3fe 100644 --- a/lib/fog/openstack/models/image/images.rb +++ b/lib/fog/openstack/models/image/images.rb @@ -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