summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-05-23 15:08:45 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-05-29 10:30:29 -0700
commit0a563deb69499cd4c2ef1904a797995d742ffda7 (patch)
tree82cf3eeb6237d9df30d5834f600998a6f57e8d28
parent2baa06a66675a366f8f5cd3ad65ce66736d350a5 (diff)
downloadchef-0a563deb69499cd4c2ef1904a797995d742ffda7.tar.gz
unfished refactoring of vfstab editing
-rw-r--r--lib/chef/provider/mount/solaris.rb5
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