Skip to content

Commit 1968a54

Browse files
committed
Check format of shape names
1 parent 1a33f13 commit 1968a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/slurm/files/update_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_limits() -> Dict[str, Dict[str, str]]:
2626
if not isinstance(count, int):
2727
raise SyntaxError
2828
for shape in limits:
29-
if not re.match(r"", shape):
29+
if re.match(r"\w{2}\.", shape) is None:
3030
raise ValueError
3131
return limits
3232

0 commit comments

Comments
 (0)