title: can't convert Array into String
body: <p>I have the following command in my <code>recipes/default.rb</code>:</p>
  
  <pre><code> data = data_bag_item('config','info')
  
   bash "setup_hadoop" do
     user "#{node[:cluster][:user]}"
     group "#{node[:cluster][:user]}"
     cwd "#{node[:cluster][:home]}"
     code &lt;&lt;-EOF
       wget http://apache.mirror.gtcomm.net/hadoop/common/hadoop-1.2.1/hadoop-1.2.1.tar.gz
       tar -xzvf hadoop-1.2.1.tar.gz
       mv hadoop-1.2.1 hadoop
     EOF
  
      template "#{node[:cluster][:hadoop]}/hadoop-env.sh" do
         source "hadoop-env.sh.erb"
         mode 0755
         owner "#{node[:cluster][:user]}"
         group "#{node[:cluster][:user]}"
         variables( :cluster_size =&gt; data['cluster_size'] )
     end
  </code></pre>
  
  <p>and I have the json file <code>info.json</code> in <code>/data_bag/config/</code>:</p>
  
  <pre><code>{
     "id": "info",
     "cluster_size": 2
  }
  </code></pre>
  
  <p>However, when I try to make use of the data bag, I got the following error:</p>
  
  <pre><code>[2014-05-05T14:35:45+00:00] INFO: Running start handlers
  [2014-05-05T14:35:45+00:00] INFO: Start handlers complete.
  [2014-05-05T14:35:45+00:00] ERROR: Failed to load data bag item: "config" "info"
  
  ================================================================================
  Recipe Compile Error in /tmp/vagrant-chef-6/chef-solo-1/cookbooks/cluster/recipes/default.rb
  ================================================================================
  
  
  TypeError
  ---------
  can't convert Array into String
  
  
  Cookbook Trace:
  ---------------
    /tmp/vagrant-chef-6/chef-solo-1/cookbooks/cluster/recipes/default.rb:10:in `from_file'
  
  
  Relevant File Content:
  ----------------------
  /tmp/vagrant-chef-6/chef-solo-1/cookbooks/cluster/recipes/default.rb:
      TypeError
      ---------
  can't convert Array into String
   10&gt;&gt; data = data_bag_item('config','info')
   11:  
   12:  bash "setup_hadoop" do
   13:     user "#{node[:cluster][:user]}"
   14:     group "#{node[:cluster][:user]}"
   15:     cwd "#{node[:cluster][:home]}"
   16:     code &lt;&lt;-EOF
   17:     wget http://apache.mirror.gtcomm.net/hadoop/common/hadoop-1.2.1/hadoop-1.2.1.tar.gz
   18:     tar -xzvf hadoop-1.2.1.tar.gz
   19:     mv hadoop-1.2.1 hadoop
   20:     variables( :cluster_size =&gt; data['cluster_size'] )
  </code></pre>
  
  <p>to make sure the data bag is correctly loaded, I ran:</p>
  
  <pre><code>knife data bag show config info
  cluster_size: 2
  id:           info
  </code></pre>
  
  <p>Which seems correctly. Could someone please help me out? I followed <a href="http://docs.opscode.com/essentials_data_bags.html" rel="nofollow">this</a> tutorial to create the data bag.</p>