[chef] node.attribute? check nested


Chronological Thread 
  • From: Daniil S < >
  • To: " " < >
  • Subject: [chef] node.attribute? check nested
  • Date: Sun, 14 Jul 2013 09:02:28 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=tTqcJ3KHImMJZVuU/6SDZWuzQAMsfINHVwSnxPMg2GX+dIOXasgaPbPJN3TDLjv+pQq9dU8mBN1x6JqDZiZQ3ls1StPzZnh1joO8s05Iy0jQsWXGK2WNnGFRzsux9N7sz8saecEm2eihd4PmUI0IytXZ4rYLoQXqIcAKhSZYryE= ;

Hello.
Official documentation mentions such construction:
not_if { node.attribute?("some_command_complete") }

Can I check nested attribute with it?
For example, if i have attribute node['foo']['bar'], how can i check if it is set?



Archive powered by MHonArc 2.6.16.

§