summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/mount.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/mount/mount.rb')
-rw-r--r--lib/chef/provider/mount/mount.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index c1d4fb2223..0a6e269d2d 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -213,10 +213,9 @@ class Chef
@real_device = @new_resource.device
else
@real_device = ""
- status = popen4("/sbin/findfs #{device_fstab}") do |pid, stdin, stdout, stderr|
- device_line = stdout.first # stdout.first consumes
- @real_device = device_line.chomp unless device_line.nil?
- end
+ ret = shell_out("/sbin/findfs #{device_fstab}")
+ device_line = ret.stdout.lines.first # stdout.first consumes
+ @real_device = device_line.chomp unless device_line.nil?
end
end
@real_device