From cd13635346ff19706577eba54f58c01aaf430a51 Mon Sep 17 00:00:00 2001 From: pesap Date: Tue, 30 Jul 2024 10:11:15 -0600 Subject: [PATCH] ix(models.py): Adding maxmium splits to allow component names with dots. (#39) --- src/infrasys/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infrasys/models.py b/src/infrasys/models.py index 80a44b7..8b4fbe4 100644 --- a/src/infrasys/models.py +++ b/src/infrasys/models.py @@ -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)