Ticket #702: df.patch
| File df.patch, 0.8 kB (added by spheromak, 2 years ago) |
|---|
-
trunk/lib/puppet/provider/mount.rb
old new 37 37 # Is the mount currently mounted? 38 38 def mounted? 39 39 platform = Facter["operatingsystem"].value 40 df = [command(:df)]41 case Facter["operatingsystem"].value40 41 case Facter["kernel"].value 42 42 # Solaris's df prints in a very weird format 43 when "Solaris": df << "-k" 43 when "SunOS": df << "-k" 44 when "Linux": df << "-P" 44 45 end 46 45 47 execute(df).split("\n").find do |line| 46 48 fs = line.split(/\s+/)[-1] 47 49 if platform == "Darwin"