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:
commit
6e116bc7e3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue