diff --git a/CHANGELOG.md b/CHANGELOG.md index df1f0b538..4a1ac39d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ BUG FIXES: in the installer context. [GH-2231] - core: Clear `DYLD_LIBRARY_PATH` on Mac if the subprocess is executing a setuid or setgid script. [GH-2243] + - core: Defined action hook names can be strings now. They are converted + to symbols internally. - guests/debian: FQDN is properly set when setting the hostname. [GH-2254] - guests/linux: Fix poor chown command for mounting VirtualBox folders. - guests/linux: Don't raise exception right away if mounting fails, allow diff --git a/lib/vagrant/plugin/v2/plugin.rb b/lib/vagrant/plugin/v2/plugin.rb index e66da1b8b..0acc7614f 100644 --- a/lib/vagrant/plugin/v2/plugin.rb +++ b/lib/vagrant/plugin/v2/plugin.rb @@ -73,7 +73,7 @@ module Vagrant # The name is currently not used but we want it for the future. hook_name ||= ALL_ACTIONS - components.action_hooks[hook_name] << block + components.action_hooks[hook_name.to_sym] << block end # Defines additional command line commands available by key. The key