Don't add destroyed machines to list of active machines when searching for box usage
This commit is contained in:
parent
b6d42d0695
commit
2b4c99aaa0
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user