Skip to content

Commit dc82251

Browse files
authored
fix(ingest): quote asset urns in patch path (#12212)
1 parent dd23f9e commit dc82251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metadata-ingestion/src/datahub/specific/dataproduct.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def add_asset(self, asset_urn: str) -> "DataProductPatchBuilder":
131131
self._add_patch(
132132
DataProductProperties.ASPECT_NAME,
133133
"add",
134-
path=f"/assets/{asset_urn}",
134+
path=f"/assets/{self.quote(asset_urn)}",
135135
value=DataProductAssociation(destinationUrn=asset_urn),
136136
)
137137
return self
@@ -140,7 +140,7 @@ def remove_asset(self, asset_urn: str) -> "DataProductPatchBuilder":
140140
self._add_patch(
141141
DataProductProperties.ASPECT_NAME,
142142
"remove",
143-
path=f"/assets/{asset_urn}",
143+
path=f"/assets/{self.quote(asset_urn)}",
144144
value={},
145145
)
146146
return self

0 commit comments

Comments
 (0)