From 5fb50918ad355116ba85bfe7304baf61a7c8da22 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Thu, 21 Aug 2008 17:48:08 +1000 Subject: Fixed #1457 - case insensitive match for error --- CHANGELOG | 2 ++ lib/puppet/provider/confine.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- cgit