X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Ffacter%2Fapt_security_updates.rb;h=77b3c0e9fcfbf55e833c9b05ca41fa1d6c8a92bc;hb=97556124daf5d49a755fd55e545b5023f057f49e;hp=19bae7521dec9ee20100ba96b0edcfd13b25cf6c;hpb=943be409bdfe4bbf4d4331effc5e544d998b3290;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/lib/facter/apt_security_updates.rb b/lib/facter/apt_security_updates.rb index 19bae75..77b3c0e 100644 --- a/lib/facter/apt_security_updates.rb +++ b/lib/facter/apt_security_updates.rb @@ -2,7 +2,7 @@ Facter.add("apt_security_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(';')[1]) end end