Return nil if box does not have an update
This commit is contained in:
parent
bb3da1e7db
commit
8f23ce0d84
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user