Merge pull request #1590 from ddysher/fix-registry

Fix bug in minion registrytest.
This commit is contained in:
Daniel Smith 2014-10-06 10:02:10 -07:00
commit 98f9a4b05b

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