Method: Fog::Baremetal::OpenStack::Mock#create_chassis

Defined in:
lib/fog/baremetal/openstack/requests/create_chassis.rb

#create_chassis(_attributes) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/fog/baremetal/openstack/requests/create_chassis.rb', line 29

def create_chassis(_attributes)
  response = Excon::Response.new
  response.status = 200
  response.headers = {
    "X-Compute-Request-Id" => "req-fdc6f99e-55a2-4ab1-8904-0892753828cf",
    "Content-Type"         => "application/json",
    "Content-Length"       => "356",
    "Date"                 => Date.new
  }
  response.body = data[:chassis_collection].first
  response
end