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

Liu, Yong yong.liu at intel.com
Wed Apr 4 14:45:13 CEST 2018


Thanks, shuai. Applied.

On 04/02/2018 02:25 PM, zhu,shuai wrote:
> 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 = ""



More information about the dts mailing list