Skip to content

Commit

Permalink
Merge pull request #278 from lucian-tx/master
Browse files Browse the repository at this point in the history
Feature: add RebootVM capability
  • Loading branch information
mleone87 authored Dec 6, 2023
2 parents 2ff04fa + a957835 commit 49c9bc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxmox/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,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")
}
Expand Down Expand Up @@ -772,7 +776,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"
}
Expand Down

0 comments on commit 49c9bc2

Please sign in to comment.