Issue #2796 has been updated by James Turnbull.

Category set to documentation
Status changed from Unreviewed to Accepted
Assigned to set to Brice Figureau
Target version set to 0.25.2


----------------------------------------
Bug #2796: puppetdoc rdoc mode doesn't handle selectors in define parameter 
values
http://projects.reductivelabs.com/issues/2796

Author: Kjetil Torgrim Homme
Status: Accepted
Priority: Normal
Assigned to: Brice Figureau
Category: documentation
Target version: 0.25.2
Affected version: 0.25.1
Keywords: 
Branch: 


The following code causes problems for the puppetdoc parser:

  class modprobe {
    define config($local_modprobe="",
                  $bonding_mode="balance-tlb",
                  $path=$osfamily ? {
                      "redhat" => "/etc/modprobe.conf",
                      "debian" => "/etc/modprobe.d/redpill-linpro",
                  })
    {
        file { $path:
            content => template("modprobe/modprobe.conf.erb");
        }
    }
    config { $fqdn: }
  }


Here's the backtrace:

  info: rdoc: scanning /var/lib/puppet/svn/modules/modprobe/manifests/init.pp
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:269:in `document_define'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:264:in `each'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:264:in `document_define'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:308:in `parse_elements'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:306:in `each'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:306:in `parse_elements'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:142:in `scan_top_level'
  /usr/lib/ruby/1.8/puppet/util/rdoc/parser.rb:38:in `scan'
  /usr/lib/ruby/1.8/rdoc/rdoc.rb:226:in `parse_files'
  /usr/lib/ruby/1.8/rdoc/rdoc.rb:219:in `each'
  /usr/lib/ruby/1.8/rdoc/rdoc.rb:219:in `parse_files'
  /usr/lib/ruby/1.8/rdoc/rdoc.rb:264:in `document'
  /usr/lib/ruby/1.8/puppet/util/rdoc.rb:31:in `rdoc'
  /usr/lib/ruby/1.8/puppet/application/puppetdoc.rb:83:in `rdoc'
  /usr/lib/ruby/1.8/puppet/application.rb:226:in `send'
  /usr/lib/ruby/1.8/puppet/application.rb:226:in `run_command'
  /usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
  /usr/lib/ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
  /usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
  /usr/bin/puppetdoc:65
  Could not generate documentation: undefined method `value' for 
#<Puppet::Parser::AST::Selector:0x7fa31e897d58>



-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to