FIx vagrant package --base to work again, wrong Machine args [GH-1410]

This commit is contained in:
Mitchell Hashimoto 2013-03-11 15:46:26 -07:00
parent fc95944631
commit c74251a1d9
1 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,12 @@ module VagrantPlugins
# better in the future. We just hardcode this to keep VirtualBox working
# for now.
provider = Vagrant.plugin("2").manager.providers[:virtualbox]
vm = Vagrant::Machine.new(options[:base], provider, @env.config.global, nil, @env, true)
vm = Vagrant::Machine.new(
options[:base],
:virtualbox, provider,
nil, @env.config_global,
nil, nil,
@env, true)
@logger.debug("Packaging base VM: #{vm.name}")
package_vm(vm, options)
end