lib/fog/proxmox/network/models/node.rb in fog-proxmox-0.14.0 vs lib/fog/proxmox/network/models/node.rb in fog-proxmox-0.15.0
- old
+ new
@@ -58,9 +58,10 @@
def power(action)
action_known = %w[reboot shutdown].include? action
message = "Action #{action} not implemented"
raise Fog::Errors::Error, message unless action_known
+
service.power_node({ node: node }, command: action)
end
private