Method: Fog::OpenStack::Image::V2::Mock#get_shared_images

Defined in:
lib/fog/openstack/image/v2/requests/get_shared_images.rb

#get_shared_images(_tenant_id) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
# File 'lib/fog/openstack/image/v2/requests/get_shared_images.rb', line 16

def get_shared_images(_tenant_id)
  response = Excon::Response.new
  response.status = [200, 204][rand(2)]
  response.body = {
    "shared_images" => [
      {"image_id"  => "ff528b20431645ebb5fa4b0a71ca002f",
       "can_share" => false}
    ]
  }
  response
end