diff options
-rw-r--r-- | lib/facter/disks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/facter/disks.rb b/lib/facter/disks.rb index 60975e5..3653a5e 100644 --- a/lib/facter/disks.rb +++ b/lib/facter/disks.rb @@ -2,6 +2,6 @@ Facter.add("disks") do confine :kernel => :linux setcode do - `egrep '[sh]d[a-z]+$' /proc/partitions | awk '{ print $4 }' | xargs`.split(' ') + `egrep '[sh]d[a-z]+$' /proc/partitions &> /dev/null | awk '{ print $4 }' | xargs`.split(' ') end end |