[dts] [PATCH V1] nics/system_info:Modify the regular match writing.

zhu,shuai shuaix.zhu at intel.com
Mon Apr 2 08:25:14 CEST 2018


To match the universality, modify the method of regular matching.

Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
---
 nics/system_info.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nics/system_info.py b/nics/system_info.py
index 1f473d8..c813cd4 100644
--- a/nics/system_info.py
+++ b/nics/system_info.py
@@ -77,7 +77,7 @@ class SystemInfo(object):
         Size: 8192 MB Locator: DIMM_A1 Speed: 2133 MHz
         """
         s_regex = r"(\s+)Size: (\d+) MB"
-        l_regex= r"(\s+)Locator: DIMM_(\w+)"
+        l_regex= r"(\s+)Locator: .*_(\w+)"
         speed_regex = r"(\s+)Speed: (.*)"
         size = ""
         locate = ""
-- 
1.9.3



More information about the dts mailing list