summaryrefslogtreecommitdiff
path: root/lib/chef/provider
diff options
context:
space:
mode:
authorGavin Reynolds <gavin@chef.io>2019-02-07 14:59:11 +0100
committerGavin Reynolds <gavin@chef.io>2019-03-04 22:42:57 +0100
commita777a110abbd8e63b9568cd37eb6fe3df75a8977 (patch)
tree53ed8050eb26c95baa8ace88ab8c9fde1f2a08fb /lib/chef/provider
parent88af7519a99993dd6afbd19e61cd804cd67151fa (diff)
downloadchef-a777a110abbd8e63b9568cd37eb6fe3df75a8977.tar.gz
Ensure that a new blank line `\n\n` is added when appending a new mount point for AIX.
Add existing mount to enable spec Signed-off-by: Gavin Reynolds <gavin@chef.io>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r--lib/chef/provider/mount/aix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/mount/aix.rb b/lib/chef/provider/mount/aix.rb
index 70aab35d8f..2d7fc1d9c3 100644
--- a/lib/chef/provider/mount/aix.rb
+++ b/lib/chef/provider/mount/aix.rb
@@ -164,7 +164,7 @@ class Chef
disable_fs
end
::File.open("/etc/filesystems", "a") do |fstab|
- fstab.puts("\n#{@new_resource.mount_point}:")
+ fstab.puts("\n\n#{@new_resource.mount_point}:")
if network_device?
device_details = device_fstab.split(":")
fstab.puts("\tdev\t\t= #{device_details[1]}")