From 33c9d6183ab4a14370e8ea34529ac019d159c5ec Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 16 Nov 2016 13:17:38 -0800 Subject: [PATCH] Provide more log information about configured plugins --- lib/vagrant.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index 683137e8d..e2603026e 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -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?