Method: Fog::Baremetal::OpenStack::Mock#patch_port

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

#patch_port(_port_uuid, _patch) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/fog/baremetal/openstack/requests/patch_port.rb', line 26

def patch_port(_port_uuid, _patch)
  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[:ports].first
  response
end