From 2e39ab53e770bed0b6d2ad8fa8809af356ed3183 Mon Sep 17 00:00:00 2001 From: Julio Arias Date: Thu, 25 Mar 2010 17:48:40 -0600 Subject: [PATCH] Fixed bug with single chef-solo cookbook location --- lib/vagrant/provisioners/chef_solo.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/provisioners/chef_solo.rb b/lib/vagrant/provisioners/chef_solo.rb index 828af3cfd..9d81517cb 100644 --- a/lib/vagrant/provisioners/chef_solo.rb +++ b/lib/vagrant/provisioners/chef_solo.rb @@ -59,9 +59,9 @@ solo # We're lucky that ruby's string and array syntax for strings is the # same as JSON, so we can just convert to JSON here and use that - result = result.to_s if result.length == 1 + result = result[0].to_s if result.length == 1 result.to_json end end end -end \ No newline at end of file +end