mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
22 lines
499 B
Ruby
22 lines
499 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 response(:status => 404) # ?
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|