Remove stderr from stdout
[puppet-modules/puppetlabs-apt.git] / lib / facter / apt_updates.rb
index ee177380c231939a12f0d22fd33dbacd4acd3f0c..15d9473d6e63716cfd9048775bc8ca82a6857bdb 100644 (file)
@@ -2,7 +2,7 @@ Facter.add("apt_updates") do
   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