Network: Use new 4.1.x attribute host_only_interface

This commit is contained in:
Mitchell Hashimoto 2011-07-19 14:24:26 -07:00
parent b9faad000c
commit 92f4ab63da
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ module Vagrant
adapter = @env["vm"].vm.network_adapters[network_options[:adapter]]
adapter.enabled = true
adapter.attachment_type = :host_only
adapter.host_interface = network_name(network_options)
adapter.host_only_interface = network_name(network_options)
adapter.mac_address = network_options[:mac].gsub(':', '') if network_options[:mac]
adapter.save
end