[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.1rc3-129-g74f8285

James Turnbull james at lovedthanlost.net
Tue Sep 7 13:31:06 UTC 2010


The following commit has been merged in the upstream branch:
commit 763e7cb6f3f8e1104ab1da515701de1dfc8f57e9
Author: Markus Roberts <Markus at reality.com>
Date:   Mon Sep 6 11:09:15 2010 -0700

    Minimal fix for #4691 -- class name uppercased in $name
    
    The class name is now stored internally with an initial capital, which changed
    the contents of $name in a way that broke some manifests.  This fix stores the
    downcased version in $name.

diff --git a/lib/puppet/resource/type.rb b/lib/puppet/resource/type.rb
index f6d3785..1d378aa 100644
--- a/lib/puppet/resource/type.rb
+++ b/lib/puppet/resource/type.rb
@@ -234,7 +234,7 @@ class Puppet::Resource::Type
     end
 
     scope.setvar("title", resource.title) unless set.include? :title
-    scope.setvar("name", resource.name) unless set.include? :name
+    scope.setvar("name", resource.name.to_s.downcase) unless set.include? :name
     scope.setvar("module_name", module_name) if module_name and ! set.include? :module_name
 
     if caller_name = scope.parent_module_name and ! set.include?(:caller_module_name)

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list