BUGFIX on snapshot name
This commit is contained in:
		@ -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),
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user