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.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 85045eddfa..77f6ccddcf 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -167,7 +167,7 @@ class Chef
# update the last matching entry with current option
# and order will remain the same.
update_or_delete_fs(true)
- else
+ else
::File.open("/etc/fstab", "a") do |fstab|
fstab.puts("#{device_fstab} #{@new_resource.mount_point} #{@new_resource.fstype} #{@new_resource.options.nil? ? default_mount_options : @new_resource.options.join(",")} #{@new_resource.dump} #{@new_resource.pass}")
logger.trace("#{@new_resource} is enabled at #{@new_resource.mount_point}")
@@ -248,7 +248,7 @@ class Chef
end
# It will update or delete the entry from fstab.
- def update_or_delete_fs(update_fs=false)
+ def update_or_delete_fs(update_fs = false)
if @current_resource.enabled
contents = []