Skip to content

Commit

Permalink
Fixed bad copying.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge-db committed Oct 7, 2023
1 parent fa490e5 commit c1a83e9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/databricks/labs/ucx/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,16 @@ def crawl_permissions(cfg: WorkspaceConfig):
Delta table.
This is the first step for the _group migration_ process, which is continued in the `migrate-groups` workflow."""
toolkit = GroupMigrationToolkit(cfg)
toolkit.cleanup_inventory_table()
toolkit.inventorize_permissions()
ws = WorkspaceClient(config=cfg.to_databricks_config())
permission_manager = PermissionManager.factory(
ws,
RuntimeBackend(),
cfg.inventory_database,
num_threads=cfg.num_threads,
workspace_start_path=cfg.workspace_start_path,
)
permission_manager.cleanup()
permission_manager.inventorize_permissions()


@task(
Expand Down

0 comments on commit c1a83e9

Please sign in to comment.