From 40243a8f2f6253e4dd3be7c3312111c0b6a3a30e Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 15 Apr 2020 13:46:10 -0700 Subject: [PATCH] Adjust when the hook action is performed With the adjustments provided in #11455 the location of injecting within the call stack has been changed slightly. With the entire stack now being generated before execution instead of dynamic hooks being wrapped around actions at run time, this update ensures that the method is called correctly after the entirety of the synced folders action has completed. --- plugins/guests/darwin/plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/darwin/plugin.rb b/plugins/guests/darwin/plugin.rb index df910b0be..afda31843 100644 --- a/plugins/guests/darwin/plugin.rb +++ b/plugins/guests/darwin/plugin.rb @@ -8,7 +8,7 @@ module VagrantPlugins action_hook(:apfs_firmlinks, :synced_folders) do |hook| require_relative "cap/mount_vmware_shared_folder" - hook.append(Cap::MountVmwareSharedFolder.method(:write_apfs_firmlinks)) + hook.prepend(Vagrant::Action::Builtin::Delayed, Cap::MountVmwareSharedFolder.method(:write_apfs_firmlinks)) end guest(:darwin, :bsd) do