title: Get IP address of node returned by chef search in recipe
body: <p>
  How can I get IP address returned by node search in chef recipe (ruby).</p>
  
  <pre class="lang-ruby prettyprint-override"><code>dbnodes = search(:node, "role:Db")
  Chef::Log.info(dbnodes.first["ipaddress"]) # nil
  </code></pre>
  
  <p>Few weeks ago this code returned IP of first instance from search API.</p>
  
  <p>version: Chef: 10.14.2</p>