Skip to content

Commit

Permalink
Fix pattern for extracting project
Browse files Browse the repository at this point in the history
  • Loading branch information
trodge committed Nov 30, 2023
1 parent 8f19987 commit f7b7999
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f7b7999

Please sign in to comment.