diff options
-rw-r--r-- | lib/chef/provider/mount/solaris.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/chef/provider/mount/solaris.rb b/lib/chef/provider/mount/solaris.rb index 07ff4271bd..b0abe4a103 100644 --- a/lib/chef/provider/mount/solaris.rb +++ b/lib/chef/provider/mount/solaris.rb @@ -106,10 +106,7 @@ class Chef tempfile.write(IO.read("/etc/vfstab")) tempfile.puts("#{device}\t-\t#{mount_point}\t#{fstype}\t#{passstr}\t#{autostr}\t#{optstr}") tempfile.close - FileUtils.mv tempfile.path, "/etc/fstab" - - ::File.open("/etc/vfstab", "a") do |fstab| - end + FileUtils.mv tempfile.path, "/etc/vfstab" end def disable_fs |