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:
parent
1059a90a53
commit
f1ef97f59f
2 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,7 @@ module Fog
|
|||
request_path 'fog/clodo/requests/compute'
|
||||
request :create_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_detail
|
||||
request :list_servers
|
||||
|
|
|
@ -15,6 +15,9 @@ module Fog
|
|||
end
|
||||
|
||||
def get(image_id)
|
||||
image = connection.get_image_details(image_id).body['image']
|
||||
new(image) if image
|
||||
rescue Fog::Compute::Clodo::NotFound
|
||||
nil
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue