From 20346951fe8d697321b2c7b0bb39f0d3c0501a09 Mon Sep 17 00:00:00 2001 From: vjeffrey Date: Mon, 28 Aug 2023 13:28:25 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20skip=20discovering=20gcp=20proje?= =?UTF-8?q?cts=20marked=20for=20deletion=20(#1600)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes https://github.com/mondoohq/cnquery/issues/1599 --- resources/packs/gcp/project.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/packs/gcp/project.go b/resources/packs/gcp/project.go index 0a9f5845e3..bfde8ba8a2 100644 --- a/resources/packs/gcp/project.go +++ b/resources/packs/gcp/project.go @@ -285,6 +285,9 @@ func (g *mqlGcpProjects) GetList() ([]interface{}, error) { } mqlProjects := make([]interface{}, 0, len(projects.Projects)) for _, p := range projects.Projects { + if p.State == "DELETE_REQUESTED" { + continue + } if _, ok := foldersMap[p.Parent]; ok { mqlP, err := projectToMql(g.MotorRuntime, p) if err != nil {