Skip to content

Commit

Permalink
🐛 skip discovering gcp projects marked for deletion (#1600)
Browse files Browse the repository at this point in the history
fixes #1599
  • Loading branch information
vjeffrey authored Aug 28, 2023
1 parent 1cfa9d8 commit 2034695
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/packs/gcp/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2034695

Please sign in to comment.