Sort plugins by name when generating install list

This commit is contained in:
Chris Roberts 2016-11-11 15:11:45 -08:00
parent 3edd0b57e9
commit 174fe65d66
1 changed files with 7 additions and 1 deletions

View File

@ -126,8 +126,14 @@ module Vagrant
system[k] = v.merge("system" => true)
end
end
plugin_list = system.merge(@user_file.installed_plugins)
system.merge(@user_file.installed_plugins)
# Sort plugins by name
Hash[
plugin_list.map{|plugin_name, plugin_info|
[plugin_name, plugin_info]
}.sort_by(&:first)
]
end
# This returns the list of plugins that are installed as