[Pkg-puppet-devel] [facter] 145/352: (maint) Redirect dmidecode stderr to /dev/null
Stig Sandbeck Mathisen
ssm at debian.org
Sun Apr 6 22:21:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository facter.
commit 299b8651ca755a56779a90c07a338e42b5f59513
Author: Matthaus Owens <matthaus at puppetlabs.com>
Date: Fri Jan 10 17:31:54 2014 -0800
(maint) Redirect dmidecode stderr to /dev/null
Previously most calls to dmidecode had stderr redirected to /dev/null.
dmidecode tends to have error messages that go to stderr during execution,
which pollutes facter runs. This commit updates the remaining calls to
dmidecode to also redirect stderr to /dev/null so that facter runs can continue
in blissful ignorance of any dmidecode errors.
---
lib/facter/virtual.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/facter/virtual.rb b/lib/facter/virtual.rb
index 4416261..4ef0ba0 100644
--- a/lib/facter/virtual.rb
+++ b/lib/facter/virtual.rb
@@ -133,7 +133,7 @@ Facter.add("virtual") do
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/ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git
More information about the Pkg-puppet-devel
mailing list