1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-30 14:21:00 +02:00

fix parsing

This commit is contained in:
Chris Lu 2021-03-14 20:50:14 -07:00
parent 352ba23f83
commit ca100568f7

View file

@ -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
}