From f76103dc60f2e29c361867643059caecd365b5e9 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Thu, 30 Jan 2020 09:36:45 -0500 Subject: [PATCH] casctl: fix matching multilevel configuration Signed-off-by: Michal Mielewczyk --- utils/casctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/casctl b/utils/casctl index b2d0290..7930ba4 100755 --- a/utils/casctl +++ b/utils/casctl @@ -44,7 +44,7 @@ def add_core_recursive(core, config): .format(core.device, core.cache_id)) exit(3) core.marked = True - match = re.match(r'/dev/cas(\d)-(\d).*', core.device) + match = re.match(r'/dev/cas(\d{1,5})-(\d{1,4})', core.device) if match: cache_id,core_id = match.groups() with_error = add_core_recursive(config.caches[int(cache_id)].cores[int(core_id)], config)