We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a7dec commit 9699958Copy full SHA for 9699958
1 file changed
lib/facter/resolvers/uname.rb
@@ -35,6 +35,10 @@ def build_fact_list(output)
35
@fact_list[:kernelrelease],
36
@fact_list[:kernelname],
37
@fact_list[:kernelversion] = uname_results.map(&:strip)
38
+ # uutils/coreutils uname does not implement -p and returns "unknown".
39
+ # Fall back to -m (machine), which is the procedure suggested by the
40
+ # uutils/coreutils developers.
41
+ @fact_list[:processor] = @fact_list[:machine] if @fact_list[:processor] == 'unknown'
42
else
43
log.warn('Request to uname returned no output. Uname related facts are not populated.')
44
end
0 commit comments