support macs in xx:xx:xx:xx:xx:xx format as well

This commit is contained in:
Vishvananda Ishaya 2011-02-04 07:19:31 +00:00 committed by Mitchell Hashimoto
parent 6416bf8ef6
commit e2d5c12870
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ module Vagrant
adapter.attachment_type = :host_only
adapter.host_interface = network_name(network_options)
if network_options[:mac]
adapter.mac_address = network_options[:mac]
adapter.mac_address = network_options[:mac].gsub(/:/, '')
end
adapter.save
end