providers/docker: reuse action stacks where possible
This commit is contained in:
parent
67741ad902
commit
067c1ca348
|
@ -110,8 +110,9 @@ module VagrantPlugins
|
|||
|
||||
b2.use Call, IsBuild do |env2, b3|
|
||||
if env2[:result]
|
||||
b3.use Destroy
|
||||
b3.use DestroyBuildImage
|
||||
b3.use EnvSet, force_confirm_destroy: true,
|
||||
skip_docker_host_machine_sync_folders_disable: true
|
||||
b3.use action_destroy
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@ module VagrantPlugins
|
|||
end
|
||||
|
||||
def call(env)
|
||||
return @app.call(env) if env[:skip_docker_host_machine_sync_folders_disable]
|
||||
return @app.call(env) if !env[:machine].provider.host_vm?
|
||||
|
||||
# Read our random ID for this instance
|
||||
|
|
Loading…
Reference in New Issue