Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/facter/resolvers/uname.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def build_fact_list(output)
@fact_list[:kernelrelease],
@fact_list[:kernelname],
@fact_list[:kernelversion] = uname_results.map(&:strip)
# uutils/coreutils uname does not implement -p and returns "unknown".
# Fall back to -m (machine), which is the procedure suggested by the
# uutils/coreutils developers.
@fact_list[:processor] = @fact_list[:machine] if @fact_list[:processor] == 'unknown'
else
log.warn('Request to uname returned no output. Uname related facts are not populated.')
end
Expand Down
Loading