Skip to content

Commit

Permalink
Add period when finding subzones (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
pederhan authored May 29, 2024
1 parent 07cb471 commit 7bbc3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mreg_cli/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def get_subzones(self) -> list[Self]:
:returns: A list of subzones.
"""
zones = self.get_list_by_field("name__endswith", f"{self.name}")
zones = self.get_list_by_field("name__endswith", f".{self.name}")
return [zone for zone in zones if zone.name != self.name]

def ensure_deletable(self) -> None:
Expand Down

0 comments on commit 7bbc3da

Please sign in to comment.