Skip to content

Commit

Permalink
Recreate the Vagrant environment when required by WSL setup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed May 12, 2017
1 parent 3c44ce9 commit fa2dd5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/vagrant
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ begin
# some extra setup to allow access to Vagrant managed machines
# outside the subsystem
if Vagrant::Util::Platform.wsl?
Vagrant::Util::Platform.wsl_init(env, logger)
recreate_env = Vagrant::Util::Platform.wsl_init(env, logger)
if recreate_env
logger.info("Re-creating Vagrant environment due to WSL modifications.")
env = Vagrant::Environment.new(opts)
end
end

if !Vagrant.in_installer? && !Vagrant.very_quiet?
Expand Down

0 comments on commit fa2dd5b

Please sign in to comment.