Skip to content

Commit

Permalink
Add missing initialization for applications and exports in reclas…
Browse files Browse the repository at this point in the history
…s-rs backend

We forgot to update kapicorp#1059 to also initialize the `applications` and
`exports` fields in the target dataclass in the reclass-rs backend. This
commit updates the reclass-rs backend to correctly initialize these
fields to match the fix in kapicorp#1142.
  • Loading branch information
simu committed Mar 18, 2024
1 parent cab8f58 commit 352f0e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kapitan/inventory/inv_reclass_rs.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def render_targets(self, targets: list = None, ignore_class_notfound: bool = Fal
for target_name, nodeinfo in inv.nodes.items():
self.targets[target_name].parameters = nodeinfo.parameters
self.targets[target_name].classes = nodeinfo.classes
self.targets[target_name].applications = nodeinfo.applications
self.targets[target_name].exports = nodeinfo.exports

except ValueError as e:
logger.error(f"Reclass-rs error: {e}")
Expand Down

0 comments on commit 352f0e4

Please sign in to comment.