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