provisioners/shell: friendly output if winrm shell provisioning
This commit is contained in:
parent
bddc7928ad
commit
286fd2f2f8
|
@ -100,6 +100,14 @@ module VagrantPlugins
|
||||||
Set-ExecutionPolicy $old -force
|
Set-ExecutionPolicy $old -force
|
||||||
EOH
|
EOH
|
||||||
|
|
||||||
|
if config.path
|
||||||
|
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
|
||||||
|
script: exec_path))
|
||||||
|
else
|
||||||
|
@machine.ui.detail(I18n.t("vagrant.provisioners.shell.running",
|
||||||
|
script: "inline PowerShell script"))
|
||||||
|
end
|
||||||
|
|
||||||
# Execute it with sudo
|
# Execute it with sudo
|
||||||
comm.sudo(command) do |type, data|
|
comm.sudo(command) do |type, data|
|
||||||
handle_comm(type, data)
|
handle_comm(type, data)
|
||||||
|
|
Loading…
Reference in New Issue