From: zhihui wu Date: Thu, 25 May 2017 05:56:21 +0000 (+0800) Subject: improve the regex for matching "cpu" X-Git-Tag: opnfv-5.0.0~94^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=e52b80edeab048248923cb6e08e7d490f2af05ee;p=qtip.git improve the regex for matching "cpu" CPU brand should not include cpu speed. Change-Id: I6938150313fda092b83df981d3622535bdf7decb Signed-off-by: zhihui wu --- diff --git a/resources/ansible_roles/inxi/tasks/main.yml b/resources/ansible_roles/inxi/tasks/main.yml index f6216df4..1050c9be 100644 --- a/resources/ansible_roles/inxi/tasks/main.yml +++ b/resources/ansible_roles/inxi/tasks/main.yml @@ -42,7 +42,7 @@ patterns: - '.+\s+Host:\s+(?P.+)\sKernel' - '.+\sMemory:\s+(?P.+MB)\s' - - '^CPU\(s\):\s+(?P.+)' + - '^CPU\(s\):\s+(?P.+)\sspeed\/max' - '.+\sDistro:\s+(?P.+)' - '.+\sKernel:\s+(?P.+)\sConsole' - '.+\s+HDD Total Size:\s+(?P.+)\s'