Show which range is being allocated in weave report

This commit is contained in:
Bryan Boreham committed 2015-11-26 17:24:41 +00:00
1 parent 2fbbb802bd
commit 8bbf8231d2
1 file changed
+2 -1
+2 -1
View File
@@ -1,6 +1,7 @@
package ipam
import (
"fmt"
"github.com/weaveworks/weave/ipam/paxos"
"github.com/weaveworks/weave/net/address"
)
@@ -88,7 +89,7 @@ func newAllocateIdentSlice(allocator *Allocator) []string {
var slice []string
for _, op := range allocator.pendingAllocates {
allocate := op.(*allocate)
slice = append(slice, allocate.ident)
slice = append(slice, fmt.Sprintf("%s %s", allocate.ident, allocate.r.String()))
}
return slice
}