Issue #1815 has been reported by masterzen.
----------------------------------------
Bug #1815: Puppetdoc crash on resource overrides documenation.
http://projects.reductivelabs.com/issues/show/1815
Author: masterzen
Status: Accepted
Priority: Normal
Assigned to: masterzen
Category: documentation
Target version: 0.24.7
Complexity: Trivial
Affected version: 0.24.6
Keywords: doc manifest crash puppetdoc
Puppetdoc crash with the following stack trace when generating manifest
documentation (with --all):
<pre>
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:171:in `scan_for_resource'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:167:in `each'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:167:in `scan_for_resource'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:213:in `document_class'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:287:in `parse_elements'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:284:in `each'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:284:in `parse_elements'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:130:in `scan_top_level'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc/parser.rb:38:in `scan'
/usr/local/lib/ruby/1.8/rdoc/rdoc.rb:226:in `parse_files'
/usr/local/lib/ruby/1.8/rdoc/rdoc.rb:219:in `each'
/usr/local/lib/ruby/1.8/rdoc/rdoc.rb:219:in `parse_files'
/usr/local/lib/ruby/1.8/rdoc/rdoc.rb:264:in `document'
/tmp/puppet-0.24.7rc2/lib/puppet/util/rdoc.rb:30:in `rdoc'
bin/puppetdoc:202
Could not generate documentation: private method `split' called for nil:NilClass
the following minimal manifest is the cause:
<pre>
class test {
file{"/tmp/test": ensure => absent }
}
class test2 inherits test{
tag(testtag)
File["/tmp/test"]{ ensure => absent }
}
</pre>
Resource overrides have a nil type and shouldn't be treated as real resources.
Patch in preparation.
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---