Skip to content

Commit

Permalink
ix(models.py): Adding maxmium splits to allow component names with do…
Browse files Browse the repository at this point in the history
…ts. (#39)
  • Loading branch information
pesap authored Jul 30, 2024
1 parent d17754e commit cd13635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infrasys/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_class_and_name_from_label(label: str) -> tuple[str, str | UUID]:
"""Return the class and name from a label.
If the name is a stringified UUID, it will be converted to a UUID.
"""
class_name, name = label.split(".")
class_name, name = label.split(".", maxsplit=1)
name_or_uuid: str | UUID = name
try:
name_or_uuid = UUID(name)
Expand Down

0 comments on commit cd13635

Please sign in to comment.