diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-11-11 21:45:23 -0800 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-12 21:31:30 -0800 |
commit | 131729775678dc113d4c29a7db3b00f3135e8ba4 (patch) | |
tree | 4f707fcc7f22256931918c9eef7ce76d0ddec95a | |
parent | 6116e5fd23de9fe48e1b6c2afccb913c532c5991 (diff) | |
download | chef-131729775678dc113d4c29a7db3b00f3135e8ba4.tar.gz |
Removed default action value as per review comment.
Signed-off-by: antima-gupta <agupta@msystechnologies.com>
-rw-r--r-- | lib/chef/provider/mount/mount.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb index fbe9b0eae3..83a2061d3d 100644 --- a/lib/chef/provider/mount/mount.rb +++ b/lib/chef/provider/mount/mount.rb @@ -166,7 +166,7 @@ class Chef # The current options don't match what we have, so # update the last matching entry with current option # and order will remain the same. - edit_fstab + edit_fstab(:update) 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}") @@ -248,7 +248,7 @@ class Chef end # It will update or delete the entry from fstab. - def edit_fstab(action = :update) + def edit_fstab(action) if @current_resource.enabled contents = [] |