From a957835da721d7217d38458e82d747abfea9f5fc Mon Sep 17 00:00:00 2001
From: Lucian Alexandru <lucian@telnyx.com>
Date: Tue, 7 Nov 2023 09:28:52 +0100
Subject: [PATCH] Feature: add RebootVM capability

---
 proxmox/client.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/proxmox/client.go b/proxmox/client.go
index 548c2c8f..be4e7be7 100644
--- a/proxmox/client.go
+++ b/proxmox/client.go
@@ -501,6 +501,10 @@ func (c *Client) ResetVm(vmr *VmRef) (exitStatus string, err error) {
 	return c.StatusChangeVm(vmr, nil, "reset")
 }
 
+func (c *Client) RebootVm(vmr *VmRef) (exitStatus string, err error) {
+	return c.StatusChangeVm(vmr, nil, "reboot")
+}
+
 func (c *Client) PauseVm(vmr *VmRef) (exitStatus string, err error) {
 	return c.StatusChangeVm(vmr, nil, "suspend")
 }
@@ -765,7 +769,7 @@ func (c *Client) ResizeQemuDisk(vmr *VmRef, disk string, moreSizeGB int) (exitSt
 func (c *Client) ResizeQemuDiskRaw(vmr *VmRef, disk string, size string) (exitStatus interface{}, err error) {
 	// PUT
 	//disk:virtio0
-	//size:+2G
+	// size:+2G
 	if disk == "" {
 		disk = "virtio0"
 	}