BUGFIX on snapshot name

This commit is contained in:
yo 2022-04-04 20:03:08 +02:00
parent 7b34495cf6
commit a12c268be2

View File

@ -64,7 +64,8 @@ func listJailSnapshots(jail Jail) {
return
}
// Get subdir to append to snapshot name
subdir := strings.Replace(strings.Split(ls[0], "@")[0], rootDataset, "", 1)
subdir := strings.Replace(strings.Split(ls[0], "@")[0],
fmt.Sprintf("%s%s", jail.Zpool, rootDataset), "", 1)
snapshots = append(snapshots, Snapshot{Dsname: ls[0],
Name: fmt.Sprintf("%s%s", strings.Split(ls[0], "@")[1], subdir),