Merge pull request #803 from rtyler/bug/801-no-provision-maps-folders
Allow provisioners to prepare, even if they're not enabled
This commit is contained in:
commit
05756cbea5
|
@ -19,12 +19,10 @@ module Vagrant
|
||||||
# We set this here so that even if this value is changed in the future,
|
# We set this here so that even if this value is changed in the future,
|
||||||
# it stays constant to what we expect here in this moment.
|
# it stays constant to what we expect here in this moment.
|
||||||
enabled = env["provision.enabled"]
|
enabled = env["provision.enabled"]
|
||||||
if enabled
|
# Instantiate and prepare the provisioners. Preparation must happen here
|
||||||
# Instantiate and prepare the provisioners. Preparation must happen here
|
# so that shared folders and such can properly take effect.
|
||||||
# so that shared folders and such can properly take effect.
|
provisioners = enabled_provisioners
|
||||||
provisioners = enabled_provisioners
|
provisioners.map { |p| p.prepare }
|
||||||
provisioners.map { |p| p.prepare }
|
|
||||||
end
|
|
||||||
|
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue