diff --git a/internal/domain/interface.go b/internal/domain/interface.go index 05c1852..ecda7ab 100644 --- a/internal/domain/interface.go +++ b/internal/domain/interface.go @@ -92,7 +92,7 @@ func (i *Interface) CopyCalculatedAttributes(src *Interface) { func (i *Interface) GetConfigFileName() string { reg := regexp.MustCompile("[^a-zA-Z0-9-_]+") - filename := fmt.Sprintf("%s", internal.TruncateString(string(i.Identifier), 8)) + filename := internal.TruncateString(string(i.Identifier), 8) filename = reg.ReplaceAllString(filename, "") filename += ".conf"