aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-03-14 20:50:14 -0700
committerChris Lu <chris.lu@gmail.com>2021-03-14 20:50:14 -0700
commitca100568f76b9ccc472352c62bc1647c9d156843 (patch)
tree24e8c0f90e3f75f2c2d592c2860e66f6c3cbeacc
parent352ba23f83adb5bddb5c65d1d2e6637a46cda05d (diff)
downloadseaweedfs-ca100568f76b9ccc472352c62bc1647c9d156843.tar.xz
seaweedfs-ca100568f76b9ccc472352c62bc1647c9d156843.zip
fix parsing
-rw-r--r--weed/shell/command_volume_list_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/shell/command_volume_list_test.go b/weed/shell/command_volume_list_test.go
index 26b2b40a9..b09622fc2 100644
--- a/weed/shell/command_volume_list_test.go
+++ b/weed/shell/command_volume_list_test.go
@@ -1,6 +1,7 @@
package shell
import (
+ "github.com/chrislusf/seaweedfs/weed/storage/types"
"github.com/golang/protobuf/proto"
"github.com/stretchr/testify/assert"
"strconv"
@@ -69,7 +70,7 @@ func parseOutput(output string) *master_pb.TopologyInfo {
Type: diskType,
MaxVolumeCount: uint64(maxVolumeCount),
}
- dn.DiskInfos[diskType] = disk
+ dn.DiskInfos[types.ToDiskType(diskType).String()] = disk
} else {
disk = nil
}