title: Type error in chef recipe
body: <p>I have the following node definition:</p>
  
  <pre><code>{
      "prestashop_sites" : {
         "site1": { "username": "dave", "password" :"password123", "URL":"www.madeup.com" },
         "site2": { "username": "dave2", "password" :"password12", "URL":"www.madeup2.com" }
      },
         "run_list": [
         "recipe[prestashop]"
      ]
  }
  </code></pre>
  
  <p>And the recipe:</p>
  
  <pre><code>node["prestashop_sites"].each do |site|
          username site['username']
          Chef::Log.debug("Found a server: #{site['username']}")
  end
  
  remote_file "/tmp/prestashop152.zip" do
          source "http://www.prestashop.com/download/old/prestashop_1.5.2.0.zip"
          mode "0644"
          checksum "37aee9ef5388376e4377aeb240ab027e"
          backup false
          not_if "test -f /tmp/prestashop152.zip"
  end
  
  execute "unzip -o /tmp/prestashop152.zip -d #{node[:prestashop][:location]}" do
          not_if "test -f /var/www/#{node[:prestashop][:user]}/prestashop/index.php"
  end
  </code></pre>
  
  <p>So my goal is to install several instances of prestashop (after I complete the script).</p>
  
  <p>But i'm stuck: </p>
  
  <pre><code>10:  node["prestashop_sites"].each do |site| 
  11&gt;&gt;    Chef::Log.debug("Found a server: #{site['username']}")
  12:  end
  
  Mon, 12 Nov 2012 21:26:14 +0100] DEBUG: Re-raising exception: 
                                          TypeError - can't convert String into Integer
  </code></pre>
  
  <p>Any idea why ?!</p>