Skip to content

Commit 2f4b570

Browse files
alexotttanmay-db
andauthored
[Exporter] Fix generation of references to users for user directories (#4297)
## Changes <!-- Summary of your changes that are easy to understand --> During refactoring, the exact references to user's home were removed, leading to the problems with references when doing initial import ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK Co-authored-by: Tanmay Rustagi <[email protected]>
1 parent dc0e8fd commit 2f4b570

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

exporter/importables.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,8 @@ var resourcesMap map[string]importable = map[string]importable{
22712271
},
22722272
Body: resourceOrDataBlockBody,
22732273
Depends: []reference{
2274+
{Path: "path", Resource: "databricks_user", Match: "home"},
2275+
{Path: "path", Resource: "databricks_service_principal", Match: "home"},
22742276
// TODO: it should try to find longest reference to another directory object that it not itself...
22752277
{Path: "path", Resource: "databricks_user", Match: "home",
22762278
MatchType: MatchPrefix, SearchValueTransformFunc: appendEndingSlashToDirName},

0 commit comments

Comments
 (0)