Skip to content

Commit 8174e97

Browse files
authored
Merge pull request #318 from opsmill/stable
Merge stable into develop
2 parents 0a3e889 + 9a90b18 commit 8174e97

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
1111

1212
<!-- towncrier release notes start -->
1313

14+
## [1.9.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.1) - 2025-03-21
15+
16+
### Fixed
17+
18+
- 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
19+
1420
## [1.9.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.0) - 2025-03-21
1521

1622
### Added

infrahub_sdk/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def process_nodes(self, data: dict) -> None:
125125
await self._init_client.schema.all(branch=self.branch_name)
126126

127127
for kind in data:
128-
if kind in self._init_client.schema.cache[self.branch_name]:
128+
if kind in self._init_client.schema.cache[self.branch_name].nodes.keys():
129129
for result in data[kind].get("edges", []):
130130
node = await self.infrahub_node.from_graphql(
131131
client=self._init_client, branch=self.branch_name, data=result

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "infrahub-sdk"
3-
version = "1.9.0"
3+
version = "1.9.1"
44
description = "Python Client to interact with Infrahub"
55
authors = ["OpsMill <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)