Skip to content

Commit de54add

Browse files
Revert "retrieve project from the name (#7063)" (#7072) (#5040)
This reverts commit 5b9e6999d97c5525c28423de44dd6f70e09eaf19. Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent cffc514 commit de54add

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.changelog/7072.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
REVERT: datacatalog: fixed the import failure when the `project` is different from the default on `google_data_catalog_taxonomy`
3+
```

google-beta/resource_data_catalog_taxonomy.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import (
1818
"fmt"
1919
"log"
2020
"reflect"
21-
"regexp"
2221
"strings"
2322
"time"
2423

@@ -333,12 +332,6 @@ func resourceDataCatalogTaxonomyImport(d *schema.ResourceData, meta interface{})
333332
name := d.Get("name").(string)
334333
d.SetId(name)
335334

336-
re := regexp.MustCompile("projects/(.+)/(?:locations|regions)/(.+)/taxonomies/(.+)")
337-
if matches := re.FindStringSubmatch(name); matches != nil {
338-
d.Set("project", matches[1])
339-
d.Set("locations", matches[2])
340-
}
341-
342335
return []*schema.ResourceData{d}, nil
343336
}
344337

0 commit comments

Comments
 (0)