Method: Fog::Baremetal::OpenStack::Mock#create_node

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

#create_node(_attributes) ⇒ Object



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/fog/baremetal/openstack/requests/create_node.rb', line 39

def create_node(_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[:nodes].first
  response
end