mitchellh/vagrant — Issue #684: Middleware documentation appears to be out-of-date
Author: emezeske
Created: 2012-01-25 19:27:04+00:00
State: open

On http://vagrantup.com/docs/extending/middleware.html , the section entitled "Modifying an Existing Middleware Stack" appears to be out-of-date. When attempting to use a Vagrant file that worked properly against 0.8.x, this error is raised:

undefined method `[]' for Vagrant::Action:Module (NoMethodError)

This is a blocking issue for up-porting projects that modify the built-in actions to use Vagrant version 0.9.x.

I briefly delved into the Vagrant source and do not see any obvious way to accomplish this. It appears that the Vagrantfile needs to reference the global Environment at some point, but I don't see any way to get a reference to it.