Truncate container IDs to twelve characters

This commit is contained in:
Adam Harrison committed 2015-03-18 17:56:58 +00:00
1 parent 2e7c281b46
commit fcab4ee239
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ func (zone *ZoneDb) String() string {
defer zone.mx.RUnlock()
var buf bytes.Buffer
for _, r := range zone.recs {
buf.WriteString(fmt.Sprintf("%s %s %v\n", r.Ident, r.IP, r.Name))
buf.WriteString(fmt.Sprintf("%.12s %s %v\n", r.Ident, r.IP, r.Name))
}
return buf.String()
}