make filteredZones order predictable

by using List() instead of UnsortedList()
This commit is contained in:
Jiahui Feng 2020-03-09 14:34:06 -07:00 committed by Indeed
parent 426e5dc57d
commit 4c3d40bf50

View File

@ -119,7 +119,7 @@ func addTopology(pv *v1.PersistentVolume, topologyKey string, zones []string) er
}
}
zones = filteredZones.UnsortedList()
zones = filteredZones.List()
if len(zones) < 1 {
return errors.New("there are no valid zones to add to pv")
}