Skip to content

Commit

Permalink
Fixed Unit Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FastLee committed Nov 4, 2024
1 parent 1a914df commit 97481be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/databricks/labs/ucx/hive_metastore/grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ def apply(self, src: SecurableObject, dst: SecurableObject) -> bool:

def retrieve(self, src: SecurableObject, dst: SecurableObject) -> list[Grant]:
grants = []
discover_grants = []
ownership_grant = self._match_ownership_grant(src)
if ownership_grant:
grants.append(ownership_grant)
Expand All @@ -829,8 +830,8 @@ def retrieve(self, src: SecurableObject, dst: SecurableObject) -> list[Grant]:
)
continue
logger.debug(f"Retrieving acls on {dst.full_name} using SQL query: {acl_migrate_sql}")
grants.append(grant)
return grants
discover_grants.append(grant)
return discover_grants

@cached_property
def _workspace_to_account_group_names(self) -> dict[str, str]:
Expand Down

0 comments on commit 97481be

Please sign in to comment.