Deal with device class for root

master
Alexey Kostin 2019-02-19 18:39:34 +03:00
parent 6cbc43ff05
commit a0ff84805e
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ func GetOsdForLocations(params Params, osdcrushdump OsdCrushDump, osddump OsdDum
}
} else {
for _, hostbucket := range bucketitems {
if strings.HasPrefix(hostbucket.Name, params.define) {
if strings.Split(hostbucket.Name, "~")[0] == strings.Split(params.define, "~")[0] { //purge device class
for _, item := range hostbucket.Items {
for _, device := range osdcrushdump.Devices {
if device.ID == item.ID {