Skip to content

Commit 25ec60b

Browse files
committed
fixes artifact_generate method to use the name of the artifact
1 parent abf9ead commit 25ec60b

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
@@ -1118,7 +1118,7 @@ async def generate(self, nodes: list[str] | None = None) -> None:
11181118
async def artifact_generate(self, name: str) -> None:
11191119
self._validate_artifact_support(ARTIFACT_GENERATE_FEATURE_NOT_SUPPORTED_MESSAGE)
11201120

1121-
artifact = await self._client.get(kind="CoreArtifact", definition__name__value=name, object__ids=[self.id])
1121+
artifact = await self._client.get(kind="CoreArtifact", name__value=name, object__ids=[self.id])
11221122
await artifact.definition.fetch() # type: ignore[attr-defined]
11231123
await artifact.definition.peer.generate([artifact.id]) # type: ignore[attr-defined]
11241124

0 commit comments

Comments
 (0)