aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-03-25 23:14:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-03-25 23:14:21 -0300
commitd7d28ad2db3f81aff20694184ccf8ecf458d9bdb (patch)
treefb0dcf9975d93ced9fe2b724cc556ef1becaf23e /lib
parent1cf285a91d82461cbca33b35527a0eb30ba12e29 (diff)
downloadpuppet-nodo-d7d28ad2db3f81aff20694184ccf8ecf458d9bdb.tar.gz
puppet-nodo-d7d28ad2db3f81aff20694184ccf8ecf458d9bdb.tar.bz2
Minor fix
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/disks.rb2
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