From b02cf9c5e8428f185b1a62f9c79e05df969aa2e1 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sat, 2 Mar 2013 01:34:13 -0300 Subject: [PATCH] Clear machine id after container destruction in order to be able to use its name with lxc-destroy --- lib/vagrant-lxc/actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/actions.rb b/lib/vagrant-lxc/actions.rb index dc9f6db..5ec962b 100644 --- a/lib/vagrant-lxc/actions.rb +++ b/lib/vagrant-lxc/actions.rb @@ -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