Permalink
Browse files

Fixes to help with inaccessible VMs and forwarded ports

  • Loading branch information...
1 parent e739e68 commit ed422e1151d38cb37e792706c2726d8b48607acf @mitchellh mitchellh committed Aug 29, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGELOG.md
  2. +1 −1 lib/vagrant/action/vm/forward_ports_helpers.rb
View
@@ -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)
@@ -11,7 +11,7 @@ module ForwardPortsHelpers
# @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

0 comments on commit ed422e1

Please sign in to comment.