core: cleaner output of what provisioner is running if named
This commit is contained in:
parent
97f9948fce
commit
6ea8dc8e20
|
@ -109,9 +109,14 @@ module Vagrant
|
|||
# Don't run if sentinel is around and we're not always running
|
||||
next if !provision_enabled && options[:run] != :always
|
||||
|
||||
name = type_name
|
||||
if options[:name]
|
||||
name = "#{options[:name]} (#{type_name})"
|
||||
end
|
||||
|
||||
env[:ui].info(I18n.t(
|
||||
"vagrant.actions.vm.provision.beginning",
|
||||
provisioner: type_name))
|
||||
provisioner: name))
|
||||
|
||||
env[:hook].call(:provisioner_run, env.merge(
|
||||
callable: method(:run_provisioner),
|
||||
|
|
|
@ -296,6 +296,7 @@ module VagrantPlugins
|
|||
|
||||
prov = nil
|
||||
if name
|
||||
name = name.to_sym
|
||||
prov = @provisioners.find { |p| p.name == name }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue