[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
1 changed files with 2 additions and 1 deletions

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