Fixes to help with inaccessible VMs and forwarded ports

This commit is contained in:
Mitchell Hashimoto 2011-08-28 20:02:02 -07:00
parent e739e68e30
commit ed422e1151
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
- Fix issue with download progress not properly clearing the line. [GH-476]
- NFS should work properly on Fedora. [GH-450]
- Arguments can be specified to the `shell` provisioner via the `args` option. [GH-475]
- Vagrant behaves much better when there are "inaccessible" VMs. [GH-453]
## 0.8.5 (August 15, 2011)

View File

@ -11,7 +11,7 @@ module Vagrant
# @return [Array<String>]
def used_ports
result = VirtualBox::VM.all.collect do |vm|
if vm.running? && vm.uuid != @env["vm"].uuid
if vm.accessible? && vm.running? && vm.uuid != @env["vm"].uuid
vm.network_adapters.collect do |na|
na.nat_driver.forwarded_ports.collect do |fp|
fp.hostport.to_i