summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-08-21 17:48:08 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-24 12:41:23 +1000
commit5fb50918ad355116ba85bfe7304baf61a7c8da22 (patch)
tree33b91e9249da0cba5fc8a6cced2162244772f869
parentded94f7157f0a4a90f87b65dfd5f1f5e5cd76fed (diff)
downloadpuppet-5fb50918ad355116ba85bfe7304baf61a7c8da22.tar.gz
puppet-5fb50918ad355116ba85bfe7304baf61a7c8da22.tar.xz
puppet-5fb50918ad355116ba85bfe7304baf61a7c8da22.zip
Fixed #1457 - case insensitive match for error
-rw-r--r--CHANGELOG2
-rw-r--r--lib/puppet/provider/confine.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 22bc7d896..39a67c148 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -6,6 +6,8 @@
Fixed #1526 - Fixed leak in template
Fixed #1506 - Removed storeconfig duplicate indexes
+
+ Fixed #1457 - case insensitive match for error
Fixed #1508 - Added HP-UX package provider
diff --git a/lib/puppet/provider/confine.rb b/lib/puppet/provider/confine.rb
index e15adcd0e..70148fc33 100644
--- a/lib/puppet/provider/confine.rb
+++ b/lib/puppet/provider/confine.rb
@@ -25,7 +25,7 @@ class Puppet::Provider::Confine
begin
require "puppet/provider/confine/%s" % name
rescue LoadError => detail
- unless detail.to_s.include?("No such file")
+ unless detail.to_s =~ /No such file/i
warn "Could not load confine test '%s': %s" % [name, detail]
end
# Could not find file