Fix bug in minion registrytest.

This commit is contained in:
Deyuan Deng
2014-10-05 15:55:26 -04:00
parent a0bb739609
commit 7bae027604

View File

@@ -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