[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1601-gf8c1b08
James Turnbull
james at lovedthanlost.net
Fri Jan 15 09:07:36 UTC 2010
The following commit has been merged in the upstream branch:
commit 53a980537a46117c94ba535bca818d7dc83c4931
Author: Markus Roberts <Markus at reality.com>
Date: Wed Dec 9 11:44:49 2009 -0800
Minimal fix for #2822
Fail rathing than raising the exception so that the line and file are
preserved. A more general solution to these sorts of issues is called
for on the code smell list.
diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb
index a4666a9..26d8efc 100644
--- a/lib/puppet/type/file.rb
+++ b/lib/puppet/type/file.rb
@@ -31,7 +31,7 @@ module Puppet
validate do |value|
unless value =~ /^#{File::SEPARATOR}/
- raise Puppet::Error, "File paths must be fully qualified, not '%s'" % value
+ fail Puppet::Error,"File paths must be fully qualified, not '#{value}'"
end
end
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list