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

[rackspace] fix images#get in the models

This commit is contained in:
geemus (Wesley Beary) 2010-04-08 12:55:55 -07:00
parent deff0fd2be
commit f31dbaa3ca

View file

@ -36,7 +36,8 @@ module Fog
end
def get(image_id)
connection.get_image_details(image_id)
data = connection.get_image_details(image_id).body['image']
new(data)
rescue Excon::Errors::NotFound
nil
end