Use cache from CommandServe module

This commit is contained in:
sophia 2022-06-28 16:26:52 -05:00
parent 20ec85b021
commit 52d37217ac

View File

@ -92,7 +92,7 @@ module Vagrant
klass = get_local_plugin
return super if klass.nil?
@logger.debug("found local plugin class #{self.class.name} -> #{klass.name}")
c = VagrantPlugins::CommandServe::Service.cache
c = VagrantPlugins::CommandServe.cache
key = c.key(klass, *@init[0])
if !c.registered?(key)
@logger.debug("creating new local plugin instance of #{klass} with args: #{@init}")