diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-08-21 17:48:08 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-08-24 12:41:23 +1000 |
commit | 5fb50918ad355116ba85bfe7304baf61a7c8da22 (patch) | |
tree | 33b91e9249da0cba5fc8a6cced2162244772f869 | |
parent | ded94f7157f0a4a90f87b65dfd5f1f5e5cd76fed (diff) | |
download | puppet-5fb50918ad355116ba85bfe7304baf61a7c8da22.tar.gz puppet-5fb50918ad355116ba85bfe7304baf61a7c8da22.tar.xz puppet-5fb50918ad355116ba85bfe7304baf61a7c8da22.zip |
Fixed #1457 - case insensitive match for error
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | lib/puppet/provider/confine.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 |