summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/mount.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/mount.rb')
-rw-r--r--lib/puppet/provider/mount.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/puppet/provider/mount.rb b/lib/puppet/provider/mount.rb
index a63a0402c..86361969c 100644
--- a/lib/puppet/provider/mount.rb
+++ b/lib/puppet/provider/mount.rb
@@ -11,14 +11,10 @@ module Puppet::Provider::Mount
# Manually pass the mount options in, since some OSes *cough*OS X*cough* don't
# read from /etc/fstab but still want to use this type.
args = []
- if self.options and self.options != :absent
- args << "-o" << self.options
- end
+ args << "-o" << self.options if self.options and self.options != :absent
args << resource[:name]
- if respond_to?(:flush)
- flush
- end
+ flush if respond_to?(:flush)
mountcmd(*args)
end