Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update catalog.py #649

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update catalog.py #649

wants to merge 1 commit into from

Conversation

chrhenry
Copy link

@chrhenry chrhenry commented May 17, 2024

Fix for the following error

File /databricks/python/lib/python3.10/site-packages/databricks/sdk/service/catalog.py:2117, in UpdatePermissions.as_dict(self)
2116 if self.full_name: body['full_name'] = self.full_name
-> 2117 if self.securable_type: body['securable_type'] = self.securable_type.value
2118 return body

AttributeError: 'str' object has no attribute 'value'

Changes

Tests

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

File /databricks/python/lib/python3.10/site-packages/databricks/sdk/service/catalog.py:2117, in UpdatePermissions.as_dict(self)
   2116 if self.full_name: body['full_name'] = self.full_name
-> 2117 if self.securable_type: body['securable_type'] = self.securable_type.value
   2118 return body

AttributeError: 'str' object has no attribute 'value'

Signed-off-by: chrhenry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant