casctl: fix matching multilevel configuration
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
1a819ec469
commit
f76103dc60
@ -44,7 +44,7 @@ def add_core_recursive(core, config):
|
|||||||
.format(core.device, core.cache_id))
|
.format(core.device, core.cache_id))
|
||||||
exit(3)
|
exit(3)
|
||||||
core.marked = True
|
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:
|
if match:
|
||||||
cache_id,core_id = match.groups()
|
cache_id,core_id = match.groups()
|
||||||
with_error = add_core_recursive(config.caches[int(cache_id)].cores[int(core_id)], config)
|
with_error = add_core_recursive(config.caches[int(cache_id)].cores[int(core_id)], config)
|
||||||
|
Loading…
Reference in New Issue
Block a user