mirror of https://github.com/k3s-io/k3s
Return from loop in removeZone when zone is found
parent
552d1ebd70
commit
cd3a30047f
|
@ -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