Method: Fog::Baremetal::OpenStack::Mock#set_node_power_state
- Defined in:
- lib/fog/baremetal/openstack/requests/set_node_power_state.rb
#set_node_power_state(_node_id, _power_state) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/fog/baremetal/openstack/requests/set_node_power_state.rb', line 20 def set_node_power_state(_node_id, _power_state) response = Excon::Response.new response.status = 202 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 |