Upgrade VM customizations

This commit is contained in:
Mitchell Hashimoto 2012-12-23 11:05:22 -08:00
parent e88d735cb6
commit 9f893534f1
1 changed files with 8 additions and 0 deletions

View File

@ -130,6 +130,14 @@ module VagrantPlugins
new.vm.guest = self.guest if self.guest new.vm.guest = self.guest if self.guest
new.vm.host_name = self.host_name if self.host_name new.vm.host_name = self.host_name if self.host_name
# If we have VM customizations, then we enable them on the
# VirtualBox provider on the new VM.
if self.customizations.length > 0
self.customizations.each do |customization|
new.vm.providers[:virtualbox].config.customize(customization)
end
end
# XXX: Warning: `vm.name` is useless now # XXX: Warning: `vm.name` is useless now
end end
end end