From 2b4c99aaa0b6458380e77faa56b918ba598933b6 Mon Sep 17 00:00:00 2001 From: sophia Date: Fri, 4 Mar 2022 16:43:43 -0600 Subject: [PATCH] Don't add destroyed machines to list of active machines when searching for box usage --- internal/core/box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/box.go b/internal/core/box.go index fce97ad22..df029e1c7 100644 --- a/internal/core/box.go +++ b/internal/core/box.go @@ -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))