Provide more log information about configured plugins

This commit is contained in:
Chris Roberts 2016-11-16 13:17:38 -08:00
parent 613a38ef74
commit 33c9d6183a
1 changed files with 9 additions and 1 deletions

View File

@ -248,7 +248,15 @@ plugins = Vagrant::Plugin::Manager.instance.installed_plugins
global_logger.info("Plugins:")
plugins.each do |plugin_name, plugin_info|
global_logger.info(" - #{plugin_name} = #{plugin_info["installed_gem_version"]}")
installed_version = plugin_info["installed_gem_version"]
version_constraint = plugin_info["gem_version"]
installed_version = 'undefined' if installed_version.to_s.empty?
version_constraint = '> 0' if version_constraint.to_s.empty?
global_logger.info(
" - #{plugin_name} = [installed: " \
"#{installed_version} constraint: " \
"#{version_constraint}]"
)
end
if Vagrant.plugins_init?