bugfix regex for cpu 67/35967/1
authorzhihui wu <wu.zhihui1@zte.com.cn>
Sat, 10 Jun 2017 12:08:53 +0000 (20:08 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Sat, 10 Jun 2017 12:08:53 +0000 (20:08 +0800)
Change-Id: I036af55669dcb386a16df9aaae202a39fdc23e9b
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
resources/ansible_roles/inxi/tasks/main.yml

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