internal/config/template: Cleanup
This commit cleans up the internal/config/template to remove code no longer used because of the new configuration.
This commit is contained in:
parent
aa3580c248
commit
2edd0f2fe2
7 changed files with 66 additions and 69 deletions
|
|
@ -60,7 +60,7 @@ func (dis *Exporter) NewArchivePath(prefix string) (path string) {
|
|||
// newSnapshot name returns a new basename for a snapshot with the provided prefix.
|
||||
// The name is guaranteed to be unique within this process.
|
||||
func (*Exporter) newSnapshotName(prefix string) string {
|
||||
suffix, _ := password.Generate(rand.Reader, 10, passwordx.Snapshot) // silently ignore any errors!
|
||||
suffix, _ := password.Generate(rand.Reader, 10, passwordx.Identifier) // silently ignore any errors!
|
||||
if prefix == "" {
|
||||
prefix = "backup"
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue