databricks / databricks-sdk-py

Databricks SDK for Python (Beta)
https://databricks-sdk-py.readthedocs.io/
Apache License 2.0
318 stars 103 forks source link

Update catalog.py #649

Open chrhenry opened 1 month ago

chrhenry commented 1 month ago

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