summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/mount
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-10 17:51:47 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-10 17:51:47 +0000
commitb44ebe21d550663af82c44b090b29f8cc902ed36 (patch)
treeee51f3180d25875a7c856d6208cec6020a05ff3a /lib/puppet/provider/mount
parent9f8849e81a34a2cf5d81a1c5fdea2aa9d51aa63d (diff)
downloadpuppet-b44ebe21d550663af82c44b090b29f8cc902ed36.tar.gz
puppet-b44ebe21d550663af82c44b090b29f8cc902ed36.tar.xz
puppet-b44ebe21d550663af82c44b090b29f8cc902ed36.zip
Fixing some warnings
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1853 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/provider/mount')
-rwxr-xr-xlib/puppet/provider/mount/parsed.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/puppet/provider/mount/parsed.rb b/lib/puppet/provider/mount/parsed.rb
index 5e9a6cf1d..3db4d7ac2 100755
--- a/lib/puppet/provider/mount/parsed.rb
+++ b/lib/puppet/provider/mount/parsed.rb
@@ -3,7 +3,7 @@ require 'puppet/provider/parsedfile'
Puppet::Type.type(:mount).provide :parsed, :parent => Puppet::Provider::ParsedFile do
@filetype = Puppet::FileType.filetype(:flat)
- commands :mount => "mount", :umount => "umount", :df => "df"
+ commands :mountcmd => "mount", :umount => "umount", :df => "df"
def self.init
@platform = Facter["operatingsystem"].value
@@ -135,11 +135,7 @@ Puppet::Type.type(:mount).provide :parsed, :parent => Puppet::Provider::ParsedFi
# This only works when the mount point is synced to the fstab.
def mount
- output = %x{#{command(:mount)} #{@model[:path]} 2>&1}
-
- unless $? == 0
- raise Puppet::Error, "Could not mount %s: %s" % [@model[:path], output]
- end
+ mountcmd @model[:path]
end
# This only works when the mount point is synced to the fstab.