From b5794ef43f768d7ea9bbbac450deaabbdcff4997 Mon Sep 17 00:00:00 2001 From: zhuofeng Date: Sat, 12 Oct 2024 17:57:01 +0800 Subject: [PATCH] modify abnormal stack when the disk field is not configured --- src/python/sentryCollector/collect_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/sentryCollector/collect_config.py b/src/python/sentryCollector/collect_config.py index 5aa38ec..7ca9898 100644 --- a/src/python/sentryCollector/collect_config.py +++ b/src/python/sentryCollector/collect_config.py @@ -127,9 +127,9 @@ class CollectConfig: CONF_IO, CONF_IO_MAX_SAVE, CONF_IO_MAX_SAVE_DEFAULT) result_io_config[CONF_IO_MAX_SAVE] = CONF_IO_MAX_SAVE_DEFAULT # disk - disk = io_map_value.get(CONF_IO_DISK).lower() + disk = io_map_value.get(CONF_IO_DISK) if disk: - disk_str = disk.replace(" ", "") + disk_str = disk.lower().replace(" ", "") pattern = r'^[a-zA-Z0-9-_,]+$' if not re.match(pattern, disk_str): logging.warning("module_name = %s section, field = %s is incorrect, use default %s", -- 2.33.0