Skip to content

Commit

Permalink
fix(context-diagram): Make port processing more secure (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger authored Jun 19, 2024
1 parent a9b331d commit de72095
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions capellambse_context_diagrams/collectors/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,10 @@ def _process_ports(self, stack_heights: dict[str, float | int]) -> None:
while (
current
and current.uuid not in self.diagram_target_owners
and hasattr(current, "owner")
and getattr(current, "owner", None) is not None
and not isinstance(current.owner, generic.PackageTypes)
):
current = self._make_owner_box(
self.diagram,
current,
)
current = self._make_owner_box(self.diagram, current)
self.common_owners.add(current.uuid)

stack_heights[side] += makers.NEIGHBOR_VMARGIN + height
Expand Down

0 comments on commit de72095

Please sign in to comment.