X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Ffacter%2Fapt_updates.rb;h=15d9473d6e63716cfd9048775bc8ca82a6857bdb;hb=97556124daf5d49a755fd55e545b5023f057f49e;hp=ee177380c231939a12f0d22fd33dbacd4acd3f0c;hpb=4ee69d08f4c0b294f99b7e114b35489fdbad805d;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/lib/facter/apt_updates.rb b/lib/facter/apt_updates.rb index ee17738..15d9473 100644 --- 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") - 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