From 795a7a3d238f495b308700627ee57376017070d0 Mon Sep 17 00:00:00 2001 From: Tony Arkles Date: Thu, 17 Dec 2015 14:40:50 -0600 Subject: [PATCH] Fix for problem where the host_info.ps1 script returns a string instead of a list of IPs --- plugins/synced_folders/smb/synced_folder.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/synced_folders/smb/synced_folder.rb b/plugins/synced_folders/smb/synced_folder.rb index e74d2fbbf..acdcc802e 100644 --- a/plugins/synced_folders/smb/synced_folder.rb +++ b/plugins/synced_folders/smb/synced_folder.rb @@ -155,7 +155,12 @@ module VagrantPlugins stderr: r.stderr end - JSON.parse(r.stdout)["ip_addresses"] + res = JSON.parse(r.stdout)["ip_addresses"] + if res.instance_of? String + [ res ] + else + res + end end end end