lib/vagrant-mutate/box_loader.rb in vagrant-mutate-1.0.0 vs lib/vagrant-mutate/box_loader.rb in vagrant-mutate-1.0.1
- old
+ new
@@ -272,12 +272,14 @@
@logger.info "Possible_versions = #{possible_versions.inspect}"
if possible_versions.length > 1
@logger.info 'Got multiple possible versions, selecting max value'
version = possible_versions.max
- else
+ elsif possible_versions.length == 1
@logger.info 'Got a single version, so returning it'
version = possible_versions.first
+ else
+ fail Errors::BoxNotFound, box: name
end
@logger.info "Found version #{version}"
version
end