Skip to content

Commit

Permalink
fix(context-diagram): Make port processing more secure
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Jun 19, 2024
1 parent a9b331d commit a5ba8f1
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 a5ba8f1

Please sign in to comment.