summaryrefslogtreecommitdiff
path: root/lib/chef/provider/mount/aix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/provider/mount/aix.rb')
-rw-r--r--lib/chef/provider/mount/aix.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/chef/provider/mount/aix.rb b/lib/chef/provider/mount/aix.rb
index 4b60a4295d..c1ed499957 100644
--- a/lib/chef/provider/mount/aix.rb
+++ b/lib/chef/provider/mount/aix.rb
@@ -57,7 +57,7 @@ class Chef
enabled = true
@current_resource.fstype($1)
@current_resource.options($4)
- Chef::Log.debug("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
+ logger.trace("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
next
when /^#{Regexp.escape(@new_resource.mount_point)}:#{nodename}:(\S+)::(\S+)?:(\S+):(\S+):(\S+):(\S+)/
# mount point entry with hostname or ipv4 address
@@ -65,7 +65,7 @@ class Chef
@current_resource.fstype($1)
@current_resource.options($4)
@current_resource.device("")
- Chef::Log.debug("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
+ logger.trace("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
next
when /^#{Regexp.escape(@new_resource.mount_point)}:(\S+)?:(\S+):#{devicename}:(\S+)?:(\S+):(\S+):(\S+):(\S+)/
# mount point entry with hostname or ipv4 address
@@ -73,7 +73,7 @@ class Chef
@current_resource.fstype($2)
@current_resource.options($5)
@current_resource.device(devicename + "/")
- Chef::Log.debug("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
+ logger.trace("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
next
when /^#{Regexp.escape(@new_resource.mount_point)}:(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?):(.*?)/
if $3.split("=")[0] == "LABEL" || $1.split("=")[0] == "LABEL"
@@ -86,10 +86,10 @@ class Chef
if @current_resource.device_type != @new_resource.device_type
enabled = true
- Chef::Log.debug("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
+ logger.trace("Found mount point #{@new_resource.mount_point} :: device_type #{@current_resource.device_type} in /etc/filesystems")
else
enabled = false
- Chef::Log.debug("Found conflicting mount point #{@new_resource.mount_point} in /etc/filesystems")
+ logger.trace("Found conflicting mount point #{@new_resource.mount_point} in /etc/filesystems")
end
end
@@ -109,10 +109,10 @@ class Chef
case line
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}")
+ logger.trace("Special device #{device_logstring} mounted as #{@new_resource.mount_point}")
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")
+ logger.trace("Found conflicting mount point #{@new_resource.mount_point} in /etc/fstab")
end
end
@current_resource.mounted(mounted)
@@ -137,9 +137,9 @@ class Chef
end
command << " #{@new_resource.mount_point}"
shell_out!(command)
- Chef::Log.debug("#{@new_resource} is mounted at #{@new_resource.mount_point}")
+ logger.trace("#{@new_resource} is mounted at #{@new_resource.mount_point}")
else
- Chef::Log.debug("#{@new_resource} is already mounted at #{@new_resource.mount_point}")
+ logger.trace("#{@new_resource} is already mounted at #{@new_resource.mount_point}")
end
end
@@ -153,7 +153,7 @@ class Chef
def enable_fs
if @current_resource.enabled && mount_options_unchanged?
- Chef::Log.debug("#{@new_resource} is already enabled - nothing to do")
+ logger.trace("#{@new_resource} is already enabled - nothing to do")
return nil
end
@@ -174,7 +174,7 @@ class Chef
fstab.puts("\tvfs\t\t= #{@new_resource.fstype}")
fstab.puts("\tmount\t\t= false")
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}")
+ logger.trace("#{@new_resource} is enabled at #{@new_resource.mount_point}")
end
end
@@ -210,7 +210,7 @@ class Chef
contents.each { |line| fstab.puts line }
end
else
- Chef::Log.debug("#{@new_resource} is not enabled - nothing to do")
+ logger.trace("#{@new_resource} is not enabled - nothing to do")
end
end