first middleware, import, moved to rescue for cleanup
This commit is contained in:
parent
3541b903d5
commit
99f7b62c83
|
@ -22,10 +22,12 @@ module Vagrant
|
|||
end
|
||||
|
||||
# Import completed successfully. Continue the chain
|
||||
@app.call(env) if !env.error?
|
||||
@app.call(env)
|
||||
end
|
||||
|
||||
def rescue(env)
|
||||
# Interrupted, destroy the VM
|
||||
env["actions"].run(:destroy) if env.interrupted?
|
||||
env["actions"].run(:destroy)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue