From 952ba920bcb6cd7f5e5d89b598c991ce491d2119 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Thu, 10 Feb 2022 15:21:56 -0600 Subject: [PATCH] Return a static priority w/ synced folders in remote manager Callers expect the manager to return both the class and an integer priority... so we get a bare minimum working by returning something reasonable. --- lib/vagrant/plugin/remote/manager.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/plugin/remote/manager.rb b/lib/vagrant/plugin/remote/manager.rb index 2c591bb03..31649631e 100644 --- a/lib/vagrant/plugin/remote/manager.rb +++ b/lib/vagrant/plugin/remote/manager.rb @@ -81,8 +81,10 @@ module Vagrant sf_class = Class.new(V2::SyncedFolder, &WRAPPER_CLASS) sf_class.plugin_name = plg[:name] sf_class.type = plg[:type] + # TODO: how to keep priority? + priority = 10 result.register(plg[:name].to_sym) do - sf_class + [sf_class, priority] end end end