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:
Tom Wiesing 2023-02-26 10:44:25 +01:00
parent aa3580c248
commit 2edd0f2fe2
No known key found for this signature in database
7 changed files with 66 additions and 69 deletions

View file

@ -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 {