Merge pull request #6681 from tonyarkles/aja_hostinfo_fix

Fix for problem where the host_info.ps1 script returns a string instead of a list of IPs
This commit is contained in:
Mitchell Hashimoto 2015-12-21 09:54:29 -08:00
commit 6e116bc7e3
1 changed files with 6 additions and 1 deletions

View File

@ -155,7 +155,12 @@ module VagrantPlugins
stderr: r.stderr stderr: r.stderr
end 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 end
end end