Fix box version sort in Update.update_specific

This commit is contained in:
Alex Goncharov 2019-04-24 18:57:34 -04:00
parent ad342e2bf0
commit b75768fc56
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ module VagrantPlugins
end
to_update = [
[name, provider, boxes[name][provider].sort.last],
[name, provider, boxes[name][provider].sort_by{|n| Gem::Version.new(n)}.last],
]
to_update.each do |n, p, v|