mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
498 B
Ruby
21 lines
498 B
Ruby
module Fog
|
|
module Compute
|
|
class Ecloud
|
|
class Real
|
|
basic_request :get_detached_disk
|
|
end
|
|
|
|
class Mock
|
|
def get_detached_disk(uri)
|
|
detached_disk_id = id_from_uri(uri)
|
|
detached_disk = self.data[:detached_disks][detached_disk_id]
|
|
|
|
if detached_disk
|
|
response(:body => Fog::Ecloud.slice(detached_disk, :id, :compute_pool_id))
|
|
else raise Fog::Errors::NotFound
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|