diff options
Diffstat (limited to 'lib/chef/resource.rb')
-rw-r--r-- | lib/chef/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource.rb b/lib/chef/resource.rb index 746efb5fd4..dadcb5c51a 100644 --- a/lib/chef/resource.rb +++ b/lib/chef/resource.rb @@ -1096,7 +1096,7 @@ class Chef rescue NameError => e # This can happen when attempting to load a provider in a platform-specific # environment where we have not required the necessary files yet - raise unless e.message =~ /uninitialized constant/ + raise unless /uninitialized constant/.match?(e.message) end # Define a method to load up this resource's properties with the current |