Skip to content

Commit

Permalink
Merge pull request #596 from haus/stable
Browse files Browse the repository at this point in the history
(maint) Redirect dmidecode stderr to /dev/null
  • Loading branch information
adrienthebo committed Jan 13, 2014
2 parents 60908eb + 299b865 commit 28c0bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facter/virtual.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
end

# Parse dmidecode
output = Facter::Util::Resolution.exec('dmidecode')
output = Facter::Util::Resolution.exec('dmidecode 2> /dev/null')
if output
lines = output.split("\n")
next "parallels" if lines.any? {|l| l =~ /Parallels/ }
Expand Down

0 comments on commit 28c0bec

Please sign in to comment.