Only include machines that have been created

This commit is contained in:
sophia 2022-03-04 13:56:30 -06:00 committed by Paul Hinze
parent 30c75b4d4d
commit c13dcc938c
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -297,6 +297,9 @@ 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 {
continue
}
m, err := t.Specialize((*core.Machine)(nil))
if err != nil {
continue