diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-23 15:08:45 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-05-29 10:30:29 -0700 |
commit | 0a563deb69499cd4c2ef1904a797995d742ffda7 (patch) | |
tree | 82cf3eeb6237d9df30d5834f600998a6f57e8d28 /lib/chef/provider/mount | |
parent | 2baa06a66675a366f8f5cd3ad65ce66736d350a5 (diff) | |
download | chef-0a563deb69499cd4c2ef1904a797995d742ffda7.tar.gz |
unfished refactoring of vfstab editing
Diffstat (limited to 'lib/chef/provider/mount')
-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 |