mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #1590 from ddysher/fix-registry
Fix bug in minion registrytest.
This commit is contained in:
commit
98f9a4b05b
@ -76,7 +76,7 @@ func (r *MinionRegistry) Delete(minion string) error {
|
||||
var newList []api.Minion
|
||||
for _, node := range r.Minions.Items {
|
||||
if node.ID != minion {
|
||||
newList = append(newList, api.Minion{JSONBase: api.JSONBase{ID: minion}})
|
||||
newList = append(newList, api.Minion{JSONBase: api.JSONBase{ID: node.ID}})
|
||||
}
|
||||
}
|
||||
r.Minions.Items = newList
|
||||
|
Loading…
Reference in New Issue
Block a user