-
Notifications
You must be signed in to change notification settings - Fork 175
Open
Description
Description
Please verify serving_endpoints.patch implementation. It's not consistent with reality.
API contact has no root level tags property

But it's present in the actual response

File /local_disk0/.ephemeral_nfs/cluster_libraries/python/lib/python3.10/site-packages/databricks/sdk/service/serving.py:271, in EndpointTag.from_dict(cls, d)
269 @classmethod
270 def from_dict(cls, d: Dict[str, any]) -> 'EndpointTag':
--> 271 return cls(key=d.get('key', None), value=d.get('value', None))
AttributeError: 'str' object has no attribute 'get'
Looks like the code should first retrieve "tags" from response
res = self._api.do('PATCH', f'/api/2.0/serving-endpoints/{name}/tags', body=body, headers=headers)
return [EndpointTag.from_dict(v) for v in res]
robinkrueger-sf
Metadata
Metadata
Assignees
Labels
No labels