From 62814ec3ca43cf60f23a6a85339eccf743441a13 Mon Sep 17 00:00:00 2001 From: Tinyblargon <76069640+Tinyblargon@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:31:41 +0100 Subject: [PATCH] fix: snapshot name not validated --- proxmox/snapshot.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxmox/snapshot.go b/proxmox/snapshot.go index a77a6727..704ed02d 100644 --- a/proxmox/snapshot.go +++ b/proxmox/snapshot.go @@ -173,6 +173,9 @@ func (snap SnapshotName) Rollback(c *Client, vmr *VmRef) (exitStatus string, err if err != nil { return } + if err = snap.Validate(); err != nil { + return + } // TODO check if snapshot exists return snap.Rollback_Unsafe(c, vmr) }