diff options
author | antima-gupta <agupta@msystechnologies.com> | 2020-11-03 03:52:42 -0800 |
---|---|---|
committer | antima-gupta <agupta@msystechnologies.com> | 2020-11-12 21:31:30 -0800 |
commit | bb2b6ea88f480b10be5ac22be6e9a0bfcffa760b (patch) | |
tree | 5b712191255592fc672d44c2d2f21b9315442ba8 | |
parent | 1a8713b2a14eaef29f4639d1ba1980b0dfda47df (diff) | |
download | chef-bb2b6ea88f480b10be5ac22be6e9a0bfcffa760b.tar.gz |
Fixed chefstyle failure.
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 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 = [] |