Issue #2611 has been updated by Henrik Lindberg. Target version changed from 3.x to 4.0.0
The syntax using operator '[]' will works in the future parser. Lookup of resource attributes will work in the future evaluator being developed. Marking this for 4.0. ---------------------------------------- Feature #2611: resource attribute access https://projects.puppetlabs.com/issues/2611#change-98536 * Author: Jan Capek * Status: Accepted * Priority: Normal * Assignee: * Category: language * Target version: 4.0.0 * Affected Puppet version: 0.24.8 * Keywords: resource attribute access * Branch: ---------------------------------------- Based on a post to the development mailing list, it may be useful to add attribute access to the language. Use case scenario: - a resource has a certain attribute - the attribute needs to be accessed from else where (e.g. another resource, template etc.) Sample code: <pre> $cacert_path = Base::X509::Cert["cacert"].path </pre> Where the Base::X509::Cert resource is a custom define instantiated e.g. as: <pre> base::x509::cert { "cacert": path => "/etc/ssl/$name", source => "puppet:///profiles/cacert.pem", } </pre> -- 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://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
