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.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 240b71f747..75cc62f40f 100644
--- a/lib/chef/provider/mount/aix.rb
+++ b/lib/chef/provider/mount/aix.rb
@@ -196,7 +196,7 @@ class Chef
::File.open("/etc/filesystems", "r").each_line do |line|
case line
when /^\/.+:\s*$/
- if line =~ /#{Regexp.escape(@new_resource.mount_point)}+:/
+ if line.match?(/#{Regexp.escape(@new_resource.mount_point)}+:/)
found_device = true
else
found_device = false