- From: <
>
- To:
- Subject: [chef] Access node attributes in a library
- Date: Thu, 2 Aug 2012 11:58:59 -0700 (PDT)
Can we access node attributes in a library? In the sample below, I get an
error
NoMethodError: undefined method `[]' for nil:NilClass on the stomp_server
variable assignment line
<code>
class Chef::Recipe::LOG
def self.logEvent(s)
stomp_server = @node[:stomp_server]
Chef::Log.info ("#{stomp_server}");
end
end
</code>
- [chef] Access node attributes in a library, vin4gud, 08/02/2012
Archive powered by MHonArc 2.6.16.