lib/virtualbox/host_network_interface.rb in virtualbox-0.7.9 vs lib/virtualbox/host_network_interface.rb in virtualbox-0.8.0
- old
+ new
@@ -89,10 +89,10 @@
# Gets the VMs which have an adapter which is attached to this
# network interface.
def attached_vms
parent.parent.vms.find_all do |vm|
result = vm.network_adapters.find do |adapter|
- adapter.host_interface == name
+ adapter.enabled? && adapter.host_interface == name
end
!result.nil?
end
end