Don't add destroyed machines to list of active machines when searching for box usage

This commit is contained in:
sophia 2022-03-04 16:43:43 -06:00 committed by Paul Hinze
parent b6d42d0695
commit 2b4c99aaa0
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -297,7 +297,7 @@ func (b *Box) Machines(index core.TargetIndex) (machines []core.Machine, err err
return nil, err
}
for _, t := range targets {
if s, _ := t.State(); s == core.CREATED {
if s, _ := t.State(); s == core.DESTROYED {
continue
}
m, err := t.Specialize((*core.Machine)(nil))