[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. puppet-0.24.5-rc3-1456-g2f0b1e5

James Turnbull james at lovedthanlost.net
Tue Oct 27 17:05:04 UTC 2009


The following commit has been merged in the upstream branch:
commit 577a45b45711942f71c31ff2db0c7fbcd82e1b1d
Author: Brice Figureau <brice-puppet at daysofwonder.com>
Date:   Thu Sep 10 21:30:42 2009 +0200

    Fix #2622 - Puppetdoc in single manifest to console is broken
    
    After the LoadedCode refactoring I forgot to update this (mostly)
    unused part of puppetdoc which unfortunately is not covered
    by unit tests.
    This commit fixes this issue.
    
    Signed-off-by: Brice Figureau <brice-puppet at daysofwonder.com>

diff --git a/lib/puppet/util/rdoc.rb b/lib/puppet/util/rdoc.rb
index a18fa1b..4edbf06 100644
--- a/lib/puppet/util/rdoc.rb
+++ b/lib/puppet/util/rdoc.rb
@@ -49,13 +49,15 @@ module Puppet::Util::RDoc
     # of a manifest
     def output(file, ast)
         astobj = []
-        ast[:nodes].each do |name, k|
+        ast.nodes.each do |name, k|
             astobj << k if k.file == file
         end
-        ast[:classes].each do |name, k|
+
+        ast.hostclasses.each do |name,k|
             astobj << k if k.file == file
         end
-        ast[:definitions].each do |name, k|
+
+        ast.definitions.each do |name, k|
             astobj << k if k.file == file
         end
         astobj.sort! {|a,b| a.line <=> b.line }.each do |k|

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list