improve the regex for matching "cpu" 09/35309/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Thu, 25 May 2017 05:56:21 +0000 (13:56 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Thu, 25 May 2017 05:56:21 +0000 (13:56 +0800)
CPU brand should not include cpu speed.

Change-Id: I6938150313fda092b83df981d3622535bdf7decb
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
resources/ansible_roles/inxi/tasks/main.yml

index f6216df..1050c9b 100644 (file)
@@ -42,7 +42,7 @@
     patterns:
       - '.+\s+Host:\s+(?P<hostname>.+)\sKernel'
       - '.+\sMemory:\s+(?P<memory>.+MB)\s'
-      - '^CPU\(s\):\s+(?P<cpu>.+)'
+      - '^CPU\(s\):\s+(?P<cpu>.+)\sspeed\/max'
       - '.+\sDistro:\s+(?P<os>.+)'
       - '.+\sKernel:\s+(?P<kernel>.+)\sConsole'
       - '.+\s+HDD Total Size:\s+(?P<disk>.+)\s'