summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-05-31 13:17:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-05-31 13:17:31 -0300
commit8d486880cab73ba64eee3395c6f41a86450b9171 (patch)
treee48d54e0a731993b71ffbfc36a76555fc4bd1744
parent390970faa9513a40d6aec21f9e82f70675e6a044 (diff)
downloadpuppet-ekeyd-8d486880cab73ba64eee3395c6f41a86450b9171.tar.gz
puppet-ekeyd-8d486880cab73ba64eee3395c6f41a86450b9171.tar.bz2
Avoid lsusb errors
-rw-r--r--lib/facter/ekeyd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/ekeyd.rb b/lib/facter/ekeyd.rb
index f15a304..4c0a91b 100644
--- a/lib/facter/ekeyd.rb
+++ b/lib/facter/ekeyd.rb
@@ -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