Sha256: 850744e30ad0ebeb6466649b3c9bfe34d4dde9b7fe1ec4c632103363ad78f042
Contents?: true
Size: 533 Bytes
Versions: 22
Compression:
Stored size: 533 Bytes
Contents
module Fog module OpenStack class Compute class Real def get_aggregate(uuid) request( :expects => [200], :method => 'GET', :path => "os-aggregates/#{uuid}" ) end end class Mock def get_aggregate(_uuid) response = Excon::Response.new response.status = 2040 response.body = {'aggregate' => data[:aggregates].first.merge("hosts" => [])} response end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems