Clear machine id after container destruction in order to be able to use its name with lxc-destroy

This commit is contained in:
Fabio Rehm 2013-03-02 01:34:13 -03:00
parent da534c3b0e
commit b02cf9c5e8

View file

@ -173,8 +173,8 @@ module Vagrant
class Destroy < BaseAction
def call(env)
env[:machine].id = nil
env[:machine].provider.container.destroy
env[:machine].id = nil
@app.call env
end
end