From 2af4ee085944895d4bf1b7b72c1aeb04983915e5 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 13 Jun 2022 17:09:31 -0700 Subject: [PATCH] Always store values even when not registered --- lib/vagrant/config/v2/root.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/config/v2/root.rb b/lib/vagrant/config/v2/root.rb index 1329c57c7..6543d4613 100644 --- a/lib/vagrant/config/v2/root.rb +++ b/lib/vagrant/config/v2/root.rb @@ -29,13 +29,14 @@ module Vagrant if config_klass # Instantiate the class and return the instance @keys[name] = config_klass.new - return @keys[name] else @logger.debug("missing key request name=#{name} loc=#{caller.first}") # Record access to a missing key as an error @missing_key_calls.add(name.to_s) - return DummyConfig.new + @keys[name] = DummyConfig.new end + + @keys[name] end # Called to finalize this object just prior to it being used by