aboutsummaryrefslogtreecommitdiff
path: root/go/topology/topology_map.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/topology/topology_map.go')
-rw-r--r--go/topology/topology_map.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/topology/topology_map.go b/go/topology/topology_map.go
index dff11aaad..ce8e9e663 100644
--- a/go/topology/topology_map.go
+++ b/go/topology/topology_map.go
@@ -11,9 +11,9 @@ func (t *Topology) ToMap() interface{} {
}
m["DataCenters"] = dcs
var layouts []interface{}
- for _, col := range t.collectionMap.Items {
+ for _, col := range t.collectionMap.Items() {
c := col.(*Collection)
- for _, layout := range c.storageType2VolumeLayout.Items {
+ for _, layout := range c.storageType2VolumeLayout.Items() {
if layout != nil {
tmp := layout.(*VolumeLayout).ToMap()
tmp["collection"] = c.Name