Fix getting mac address from the driver.
This commit is contained in:
parent
5d0de9486e
commit
8619267cd9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue