# File lib/fog/profitbricks/requests/compute/get_all_lans.rb, line 101 def get_all_lans(datacenter_id) lans = data[:lans] if lns = data[:lans]['items'].select do |attrib| attrib['datacenter_id'] == datacenter_id end else raise Fog::Errors::NotFound, 'The resource could not be found' end lans['items'] = lns response = Excon::Response.new response.status = 200 response.body = lans response end