From b5db5c015660f72a5535777cd0bd99e059032693 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Mon, 7 Jan 2019 11:43:27 -0800 Subject: [PATCH] Show source and destination locations with file provisioner Prior to this commit, Vagrants output would only show that a file provisioner was running, but had no detail as to what file was being copied to where. This is especially confusing if a Vagrantfile has multiple file provisioners. This commit updates that by showing the source and destination of the file so that it's clearer what is being copied and to where. --- plugins/provisioners/file/provisioner.rb | 2 ++ templates/locales/en.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/plugins/provisioners/file/provisioner.rb b/plugins/provisioners/file/provisioner.rb index 8391a4503..e763b54d2 100644 --- a/plugins/provisioners/file/provisioner.rb +++ b/plugins/provisioners/file/provisioner.rb @@ -38,6 +38,8 @@ module VagrantPlugins end comm.execute(command) + @machine.ui.detail(I18n.t("vagrant.actions.vm.provision.file.locations", + src: source, dst: destination)) # now upload the file comm.upload(source, destination) end diff --git a/templates/locales/en.yml b/templates/locales/en.yml index f592e03d4..12865aad6 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -2323,6 +2323,8 @@ en: disabled_by_sentinel: |- Machine already provisioned. Run `vagrant provision` or use the `--provision` flag to force provisioning. Provisioners marked to run always will still run. + file: + locations: "%{src} => %{dst}" resume: resuming: Resuming suspended VM... unpausing: |-