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

[clodo|compute] Enable :get_image_details

This commit is contained in:
Stepan G. Fedorov 2011-11-08 15:05:41 +04:00
parent 1059a90a53
commit f1ef97f59f
2 changed files with 4 additions and 1 deletions

View file

@ -15,7 +15,7 @@ module Fog
request_path 'fog/clodo/requests/compute' request_path 'fog/clodo/requests/compute'
request :create_server request :create_server
request :delete_server request :delete_server
# request :get_image_details # Not supported by API request :get_image_details # Not supported by API
request :list_images request :list_images
request :list_images_detail request :list_images_detail
request :list_servers request :list_servers

View file

@ -15,6 +15,9 @@ module Fog
end end
def get(image_id) def get(image_id)
image = connection.get_image_details(image_id).body['image']
new(image) if image
rescue Fog::Compute::Clodo::NotFound
nil nil
end end