mirror of https://github.com/k3s-io/k3s
Merge pull request #76349 from tedyu/master
Return from loop in removeZone when zone is foundk3s-v1.15.3
commit
df5bff927f
|
@ -127,6 +127,7 @@ func (nt *NodeTree) removeZone(zone string) {
|
|||
for i, z := range nt.zones {
|
||||
if z == zone {
|
||||
nt.zones = append(nt.zones[:i], nt.zones[i+1:]...)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue