Sort box metadata versions

This commit is contained in:
sophia 2022-04-01 12:08:50 -05:00 committed by Paul Hinze
parent 03ecb877e6
commit 8adbab2f22
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -39,7 +39,9 @@ module Vagrant
def versions(**opts)
provider = nil
provider = opts[:provider].to_sym if opts[:provider]
@client.versions(provider)
v = @client.list_versions(provider)
# Sort so the last element of the list is the latest version.
v.sort.map(&:to_s)
end
class Version