List plugins should have output when no plugins
This commit is contained in:
parent
5882d5dad6
commit
455745277c
|
@ -40,8 +40,12 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
# Output!
|
||||
installed_map.values.each do |spec|
|
||||
env[:ui].info "#{spec.name} (#{spec.version})"
|
||||
if installed_map.empty?
|
||||
env[:ui].info(I18n.t("vagrant.commands.plugin.no_plugins"))
|
||||
else
|
||||
installed_map.values.each do |spec|
|
||||
env[:ui].info "#{spec.name} (#{spec.version})"
|
||||
end
|
||||
end
|
||||
|
||||
@app.call(env)
|
||||
|
|
|
@ -417,6 +417,8 @@ en:
|
|||
the comments in the Vagrantfile as well as documentation on
|
||||
`vagrantup.com` for more information on using Vagrant.
|
||||
plugin:
|
||||
no_plugins: |-
|
||||
No plugins installed.
|
||||
installing: |-
|
||||
Installing the '%{name}' plugin. This can take a few minutes...
|
||||
uninstalling: |-
|
||||
|
|
Loading…
Reference in New Issue