diff --git a/changelog/+4507ed25.fixed.md b/changelog/+4507ed25.fixed.md new file mode 100644 index 00000000..5186e0ab --- /dev/null +++ b/changelog/+4507ed25.fixed.md @@ -0,0 +1 @@ +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 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