Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/+store_default_branch_generator.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fixes an issue where the default branch of the client store was not properly set in a generator
1 change: 1 addition & 0 deletions infrahub_sdk/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
self.generator_instance = generator_instance
self._init_client = client.clone()
self._init_client.config.default_branch = self._init_client.default_branch = self.branch_name
self._init_client.store._default_branch = self.branch_name

Check warning on line 43 in infrahub_sdk/generator.py

View check run for this annotation

Codecov / codecov/patch

infrahub_sdk/generator.py#L43

Added line #L43 was not covered by tests
self._client: InfrahubClient | None = None
self._nodes: list[InfrahubNode] = []
self._related_nodes: list[InfrahubNode] = []
Expand Down