mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix parsing
This commit is contained in:
parent
352ba23f83
commit
ca100568f7
|
@ -1,6 +1,7 @@
|
||||||
package shell
|
package shell
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/chrislusf/seaweedfs/weed/storage/types"
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -69,7 +70,7 @@ func parseOutput(output string) *master_pb.TopologyInfo {
|
||||||
Type: diskType,
|
Type: diskType,
|
||||||
MaxVolumeCount: uint64(maxVolumeCount),
|
MaxVolumeCount: uint64(maxVolumeCount),
|
||||||
}
|
}
|
||||||
dn.DiskInfos[diskType] = disk
|
dn.DiskInfos[types.ToDiskType(diskType).String()] = disk
|
||||||
} else {
|
} else {
|
||||||
disk = nil
|
disk = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue