Issue #3380 has been updated by Brice Figureau.

Category set to documentation
Status changed from Unreviewed to Rejected
Assigned to set to Brice Figureau

By design we don't parse the body of if(s)/case/selectors because we can't know 
which branch to take (it is a runtime thing and we're doing only a static 
analysis).
----------------------------------------
Bug #3380: puppetdoc doesn't generate documentation for resources inside 
conditionals
http://projects.reductivelabs.com/issues/3380

Author: Florian Wagner
Status: Rejected
Priority: Normal
Assigned to: Brice Figureau
Category: documentation
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


When documenting a class such as the following puppetdoc generates a 
documentation entry for the class itself but not for its contained resources:
 
  class test {
  if(false) {
      # the documentation
    file { "/abc":
      mode => 775,
    }
  }
}

It is independent of the evaluation of the conditional. Even if(true) { ... 
doesn't result in documentation.


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