Reformat output of pending ipam requests

This commit is contained in:
Bryan Boreham committed 2015-06-01 10:55:01 +01:00
1 parent 1d6f1f7561
commit cd1cca3df2
1 file changed
+3 -3
+3 -3
View File
@@ -473,12 +473,12 @@ func (alloc *Allocator) string() string {
alloc.ring.FprintWithNicknames(&buf, alloc.nicknames)
}
if len(alloc.pendingAllocates)+len(alloc.pendingClaims) > 0 {
fmt.Fprintf(&buf, "\nPending requests for ")
fmt.Fprintf(&buf, "\nPending requests:")
for _, op := range alloc.pendingAllocates {
fmt.Fprintf(&buf, "%s, ", op.String())
fmt.Fprintf(&buf, "\n %s", op.String())
}
for _, op := range alloc.pendingClaims {
fmt.Fprintf(&buf, "%s, ", op.String())
fmt.Fprintf(&buf, "\n %s", op.String())
}
}
return buf.String()