Skip to content

Commit

Permalink
fix: snapshot name not validated
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyblargon committed Feb 29, 2024
1 parent 8998878 commit 62814ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxmox/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 62814ec

Please sign in to comment.