Skip to content

Commit abf9ead

Browse files
committed
fixes artifact_fetch method to fetch artifact using artifact name
1 parent 7f1ebbb commit abf9ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ async def artifact_generate(self, name: str) -> None:
11251125
async def artifact_fetch(self, name: str) -> str | dict[str, Any]:
11261126
self._validate_artifact_support(ARTIFACT_GENERATE_FEATURE_NOT_SUPPORTED_MESSAGE)
11271127

1128-
artifact = await self._client.get(kind="CoreArtifact", definition__name__value=name, object__ids=[self.id])
1128+
artifact = await self._client.get(kind="CoreArtifact", name__value=name, object__ids=[self.id])
11291129
content = await self._client.object_store.get(identifier=artifact.storage_id.value) # type: ignore[attr-defined]
11301130
return content
11311131

0 commit comments

Comments
 (0)