diff --git a/CHANGELOG.md b/CHANGELOG.md index a9496730..65affdae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [1.9.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.1) - 2025-03-21 + +### Fixed + +- Fixed an issue where the process_nodes method in the generators used the old format of the schema hash, so node population didn't work + ## [1.9.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.0) - 2025-03-21 ### Added diff --git a/infrahub_sdk/generator.py b/infrahub_sdk/generator.py index 831d9c98..e08f6642 100644 --- a/infrahub_sdk/generator.py +++ b/infrahub_sdk/generator.py @@ -125,7 +125,7 @@ async def process_nodes(self, data: dict) -> None: await self._init_client.schema.all(branch=self.branch_name) for kind in data: - if kind in self._init_client.schema.cache[self.branch_name]: + if kind in self._init_client.schema.cache[self.branch_name].nodes.keys(): for result in data[kind].get("edges", []): node = await self.infrahub_node.from_graphql( client=self._init_client, branch=self.branch_name, data=result diff --git a/pyproject.toml b/pyproject.toml index 8c528248..360f9608 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infrahub-sdk" -version = "1.9.0" +version = "1.9.1" description = "Python Client to interact with Infrahub" authors = ["OpsMill "] readme = "README.md"