From 254a7affdf6e8ec0bbf14d75ac1154d2fd9902d9 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Fri, 10 May 2019 13:56:12 +0100 Subject: [PATCH] Check format of shape names --- roles/slurm/files/update_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/slurm/files/update_config.py b/roles/slurm/files/update_config.py index 72fc66ec..385c3ce3 100644 --- a/roles/slurm/files/update_config.py +++ b/roles/slurm/files/update_config.py @@ -26,7 +26,7 @@ def get_limits() -> Dict[str, Dict[str, str]]: if not isinstance(count, int): raise SyntaxError for shape in limits: - if not re.match(r"", shape): + if re.match(r"\w{2}\.", shape) is None: raise ValueError return limits