summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/aix.rb
diff options
context:
space:
mode:
authorkaustubh-d <kaustubh@clogeny.com>2013-07-19 03:41:09 -0500
committeradamedx <adamed@opscode.com>2013-07-22 04:20:31 -0700
commita1863bedd3e0f9160e481631e62963cd3600783a (patch)
treef532f9802f8ace091d49b7dd1ece862baa8f6f93 /lib/chef/provider/mount/aix.rb
parentb4cceecfc215889ed903d34f5a2c54fc939be053 (diff)
downloadchef-a1863bedd3e0f9160e481631e62963cd3600783a.tar.gz
implement review comment - updated_by_last_action is updated by parent.
Diffstat (limited to 'lib/chef/provider/mount/aix.rb')
-rw-r--r--lib/chef/provider/mount/aix.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/chef/provider/mount/aix.rb b/lib/chef/provider/mount/aix.rb
index b3c7d73bb5..2b1cb2a88f 100644
--- a/lib/chef/provider/mount/aix.rb
+++ b/lib/chef/provider/mount/aix.rb
@@ -80,7 +80,6 @@ class Chef
when /#{search_device}\s+#{Regexp.escape(@new_resource.mount_point)}/
mounted = true
Chef::Log.debug("Special device #{device_logstring} mounted as #{@new_resource.mount_point}")
- puts #{mounted}
when /^[\/\w]+\s+#{Regexp.escape(@new_resource.mount_point)}\s+/
mounted = false
Chef::Log.debug("Found conflicting mount point #{@new_resource.mount_point} in /etc/fstab")
@@ -131,7 +130,6 @@ class Chef
if @current_resource.enabled
# The current options don't match what we have, so
# disable, then enable.
- fs_updating = true
disable_fs
end
::File.open("/etc/filesystems", "a") do |fstab|
@@ -148,7 +146,6 @@ class Chef
fstab.puts "\toptions\t\t= #{@new_resource.options.join(',')}" unless @new_resource.options.nil? || @new_resource.options.empty?
Chef::Log.debug("#{@new_resource} is enabled at #{@new_resource.mount_point}")
end
- @new_resource.updated_by_last_action(true) if fs_updating # mark since this is an update to already enabled fs
end
def disable_fs