When performing a blind map, if previous mapping found, use it

This commit is contained in:
Chris Roberts 2022-04-06 12:20:21 -07:00 committed by Paul Hinze
parent 1d555b025f
commit f6a46634a5
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -248,6 +248,11 @@ module VagrantPlugins
# If we don't have a desired final type, test for mappers
# that are satisfied by the arguments we have and run that
# directly
if blind_to = @@blind_maps[value.class]
logger.debug { "found existing blind mapping for type #{value.class} -> #{blind_to}" }
to = blind_to
end
if to.nil?
valid_outputs = []
cb = lambda do |k|