Return nil if box does not have an update

This commit is contained in:
sophia 2022-03-11 15:37:26 -06:00 committed by Paul Hinze
parent bb3da1e7db
commit 8f23ce0d84
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -62,6 +62,9 @@ module Vagrant
def has_update?(version=nil, **opts)
update_info = client.update_info(version)
if update_info.nil?
return nil
end
metadata = update_info[0]
new_version = update_info[1]
new_provider = update_info[2]