`vagrant package` works again
This commit is contained in:
parent
6a12edeb71
commit
a2cd7936ea
|
@ -51,12 +51,7 @@ module VagrantPlugins
|
||||||
# `vagrant package --base` process is deprecated for something much
|
# `vagrant package --base` process is deprecated for something much
|
||||||
# better in the future. We just hardcode this to keep VirtualBox working
|
# better in the future. We just hardcode this to keep VirtualBox working
|
||||||
# for now.
|
# for now.
|
||||||
provider = nil
|
provider = Vagrant.plugin("2").manager.providers[:virtualbox]
|
||||||
Vagrant.plugin("2").registered.each do |plugin|
|
|
||||||
provider = plugin.provider.get(:virtualbox)
|
|
||||||
break if provider
|
|
||||||
end
|
|
||||||
|
|
||||||
vm = Vagrant::Machine.new(options[:base], provider, @env.config.global, nil, @env, true)
|
vm = Vagrant::Machine.new(options[:base], provider, @env.config.global, nil, @env, true)
|
||||||
@logger.debug("Packaging base VM: #{vm.name}")
|
@logger.debug("Packaging base VM: #{vm.name}")
|
||||||
package_vm(vm, options)
|
package_vm(vm, options)
|
||||||
|
|
Loading…
Reference in New Issue