From f7b7999761b7533bcaa4b7d5ab22cff7713136a7 Mon Sep 17 00:00:00 2001 From: Thomas Rodgers Date: Thu, 30 Nov 2023 19:41:40 +0000 Subject: [PATCH] Fix pattern for extracting project --- .../templates/terraform/encoders/cloudbuildv2_repository.go.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb b/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb index ec6945291007..cf6c58a466cb 100644 --- a/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb +++ b/mmv1/templates/terraform/encoders/cloudbuildv2_repository.go.erb @@ -15,7 +15,7 @@ // Extract any empty fields from the parent_connection field. project := d.Get("project").(string) parent_connection := d.Get("parent_connection").(string) -project, err := tpgresource.ExtractFieldByPattern("project", project, parent_connection, "((projects|folders|organizations|billingAccounts)/[a-z0-9A-Z-]*)/locations/.*") +project, err := tpgresource.ExtractFieldByPattern("project", project, parent_connection, "projects/([a-z0-9A-Z-]*)/locations/.*") if err != nil { return nil, fmt.Errorf("error extracting project field: %s", err) }