[chef] undefined method `[]' for nil:NilClass


Chronological Thread 
  • From: "Oliver Rojo" < >
  • To: "chef mailing list" < >
  • Subject: [chef] undefined method `[]' for nil:NilClass
  • Date: Thu, 18 Feb 2010 08:37:25 +0000

How can i fix this error?

Chef::Mixin::Template::TemplateError (undefined method `[]' for nil:NilClass)

I'm using:

<%= @localhost["ipaddress"] %> on one of my template and suddenly after 
running chef-client, it stops with the above error.

Please help!

Oliver



Archive powered by MHonArc 2.6.16.

§