]> gitweb.fluxo.info Git - puppet-ekeyd.git/commitdiff
Avoid lsusb errors
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 31 May 2014 16:17:31 +0000 (13:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 31 May 2014 16:17:31 +0000 (13:17 -0300)
lib/facter/ekeyd.rb

index f15a3049dbc3714533d53bea434d07c1a8369f16..4c0a91b4c7e4795a13a6996cfdd8e16deff6fc1e 100644 (file)
@@ -7,6 +7,6 @@ end
 Facter.add('ekeyd_key_present') do
   confine :operatingsystem => %w{Debian}
   setcode do
-    !`lsusb | grep "Entropy Key"`.empty?
+    !`lsusb 2> /dev/null | grep "Entropy Key"`.empty?
   end
 end