Code Review
/
qtip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
00d8896
)
improve the regex for matching "cpu"
09/35309/1
author
zhihui wu
<wu.zhihui1@zte.com.cn>
Thu, 25 May 2017 05:56:21 +0000
(13:56 +0800)
committer
zhihui 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
patch
|
blob
|
history
diff --git
a/resources/ansible_roles/inxi/tasks/main.yml
b/resources/ansible_roles/inxi/tasks/main.yml
index
f6216df
..
1050c9b
100644
(file)
--- 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<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'