diff options
Diffstat (limited to 'plugins/facter/virtual.rb')
-rw-r--r-- | plugins/facter/virtual.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/facter/virtual.rb b/plugins/facter/virtual.rb index e649345..afb60f3 100644 --- a/plugins/facter/virtual.rb +++ b/plugins/facter/virtual.rb @@ -13,7 +13,7 @@ Facter.add("virtual") do setcode do - lspciexists = system "which lspci >&/dev/null" + lspciexists = system "which lspci > /dev/null 2>&1" if $?.exitstatus == 0 output = %x{lspci} output.each {|p| |