From f6a46634a5de10cc65e5aef47ba2344585a02657 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 6 Apr 2022 12:20:21 -0700 Subject: [PATCH] When performing a blind map, if previous mapping found, use it --- plugins/commands/serve/mappers.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/commands/serve/mappers.rb b/plugins/commands/serve/mappers.rb index c4e092cd3..e1305c2bc 100644 --- a/plugins/commands/serve/mappers.rb +++ b/plugins/commands/serve/mappers.rb @@ -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|