Skip to content

Commit

Permalink
Merge pull request #348 from hunner/patch_fact
Browse files Browse the repository at this point in the history
Remove stderr from stdout
  • Loading branch information
Morgan Haskel committed Aug 15, 2014
2 parents 6a95ab6 + ea9f902 commit 4d9d9e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/facter/apt_package_updates.rb
Expand Up @@ -2,7 +2,7 @@
confine :osfamily => 'Debian'
setcode do
if File.executable?("/usr/lib/update-notifier/apt-check")
packages = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check -p 2>&1')
packages = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check -p 2>/dev/null')
packages = packages.split("\n")
if Facter.version < '2.0.0'
packages = packages.join(',')
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/apt_security_updates.rb
Expand Up @@ -2,7 +2,7 @@
confine :osfamily => 'Debian'
setcode do
if File.executable?("/usr/lib/update-notifier/apt-check")
updates = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check 2>&1')
updates = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check 2>/dev/null')
Integer(updates.strip.split(';')[1])
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/facter/apt_updates.rb
Expand Up @@ -2,7 +2,7 @@
confine :osfamily => 'Debian'
setcode do
if File.executable?("/usr/lib/update-notifier/apt-check")
updates = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check 2>&1')
updates = Facter::Util::Resolution.exec('/usr/lib/update-notifier/apt-check 2>/dev/null')
Integer(updates.strip.split(';')[0])
end
end
Expand Down

0 comments on commit 4d9d9e1

Please sign in to comment.