Skip to content

Commit

Permalink
fix(ingest): quote asset urns in patch path (#12212)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Dec 23, 2024
1 parent dd23f9e commit dc82251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/specific/dataproduct.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def add_asset(self, asset_urn: str) -> "DataProductPatchBuilder":
self._add_patch(
DataProductProperties.ASPECT_NAME,
"add",
path=f"/assets/{asset_urn}",
path=f"/assets/{self.quote(asset_urn)}",
value=DataProductAssociation(destinationUrn=asset_urn),
)
return self
Expand All @@ -140,7 +140,7 @@ def remove_asset(self, asset_urn: str) -> "DataProductPatchBuilder":
self._add_patch(
DataProductProperties.ASPECT_NAME,
"remove",
path=f"/assets/{asset_urn}",
path=f"/assets/{self.quote(asset_urn)}",
value={},
)
return self
Expand Down

0 comments on commit dc82251

Please sign in to comment.