mirror of https://github.com/ansible/ansible.git
facts: fix double-counting of CPUs on POWER systems (#58360)
On POWER systems, /proc/cpuinfo provides a 'processor' entry as a counter, and a 'cpu' entry with a description (similar to 'model name' on x86). Support for POWER in get_cpu_facts was added via the 'cpu' entry in commitpull/60332/head8746e692c1. Subsequent support for ARM64 in commitce4ada93f9used the 'processor' entry, resulting in double-counting of cores on POWER systems. When unit tests were later written for this code in commit55306906cf, the erroneous values were just accepted in the test instead of being diagnosed. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> (cherry picked from commit93d9d64038)
parent
8e56708e22
commit
5d3f0fe02c
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- facts - fixed double-counting of CPUs on POWER systems
|
||||
Loading…
Reference in New Issue