Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove stderr from stdout
[puppet-modules/puppetlabs-apt.git]
/
lib
/
facter
/
apt_updates.rb
diff --git
a/lib/facter/apt_updates.rb
b/lib/facter/apt_updates.rb
index ee177380c231939a12f0d22fd33dbacd4acd3f0c..15d9473d6e63716cfd9048775bc8ca82a6857bdb 100644
(file)
--- a/
lib/facter/apt_updates.rb
+++ b/
lib/facter/apt_updates.rb
@@
-2,7
+2,7
@@
Facter.add("apt_updates") do
confine :osfamily => 'Debian'
setcode do
if File.executable?("/usr/lib/update-notifier/apt-check")
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
Integer(updates.strip.split(';')[0])
end
end