-
Notifications
You must be signed in to change notification settings - Fork 6
Fix bug with nested object template range expansion #625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
1c0b643
e48d4f9
7ead841
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed nested object template range expansion. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -209,6 +209,7 @@ async def process(self, client: InfrahubClient, branch: str | None = None) -> No | |
| position=[idx + 1], | ||
| branch=branch, | ||
| default_schema_kind=self.kind, | ||
| parameters=self.parameters, | ||
| ) | ||
|
|
||
| @classmethod | ||
|
|
@@ -509,7 +510,7 @@ async def create_node( | |
| context=context, | ||
| branch=branch, | ||
| default_schema_kind=default_schema_kind, | ||
| parameters=parameters, | ||
| parameters=InfrahubObjectParameters(**data[rel].get("parameters")) if "parameters" in data[rel] else None, | ||
|
||
| ) | ||
|
|
||
| return node | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the
Nonebeparametershere? I'm not sure how parameters passed intocreate_nodeare expected to behave in combination with parameters defined inside ofdataThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If none is passed to the function it will create a new instance of
InfrahubObjectParameterswithparameters = parameters or InfrahubObjectParameters()