BUGFIX on snapshot name
This commit is contained in:
parent
7b34495cf6
commit
a12c268be2
@ -64,7 +64,8 @@ func listJailSnapshots(jail Jail) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Get subdir to append to snapshot name
|
// 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],
|
snapshots = append(snapshots, Snapshot{Dsname: ls[0],
|
||||||
Name: fmt.Sprintf("%s%s", strings.Split(ls[0], "@")[1], subdir),
|
Name: fmt.Sprintf("%s%s", strings.Split(ls[0], "@")[1], subdir),
|
||||||
|
Loading…
Reference in New Issue
Block a user