aboutsummaryrefslogtreecommitdiff
path: root/lib/facter/disks.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-03-25 23:52:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-03-25 23:52:12 -0300
commitfae7e5b99c7e7cfeb765e13420f110f5f42ea3ec (patch)
treee47cc0d10b7bfcfaf809ecc1b64fc9fee25b3549 /lib/facter/disks.rb
parente0cd10754f2b10c8f58e1de28cd43c8dbc6b7ebc (diff)
downloadpuppet-nodo-fae7e5b99c7e7cfeb765e13420f110f5f42ea3ec.tar.gz
puppet-nodo-fae7e5b99c7e7cfeb765e13420f110f5f42ea3ec.tar.bz2
Minor fix
Diffstat (limited to 'lib/facter/disks.rb')
-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 3653a5e..d6dd665 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 &> /dev/null | awk '{ print $4 }' | xargs`.split(' ')
+ `egrep '[sh]d[a-z]+$' /proc/partitions 2> /dev/null | awk '{ print $4 }' | xargs`.split(' ')
end
end