Fix getting mac address from the driver.

This commit is contained in:
Bjorn Brala 2016-10-06 08:29:05 +02:00
parent 5d0de9486e
commit 8619267cd9
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ module VagrantPlugins
# have to worry about it.
def create_vagrantfile
File.open(File.join(@env["export.temp_dir"], "Vagrantfile"), "w") do |f|
mac_address = @env[:machine].provider.driver.read_mac_address
f.write(TemplateRenderer.render("package_Vagrantfile", {
base_mac: @env[:machine].provider.driver.read_mac_address
base_mac: mac_address["mac"]
}))
end
end