diff --git a/lib/vagrant-lxc/action.rb b/lib/vagrant-lxc/action.rb index 217a7d8..e5a3cb8 100644 --- a/lib/vagrant-lxc/action.rb +++ b/lib/vagrant-lxc/action.rb @@ -5,7 +5,6 @@ require 'vagrant-lxc/action/clear_forwarded_ports' require 'vagrant-lxc/action/create' require 'vagrant-lxc/action/created' require 'vagrant-lxc/action/destroy' -require 'vagrant-lxc/action/disconnect' require 'vagrant-lxc/action/compress_rootfs' require 'vagrant-lxc/action/forced_halt' require 'vagrant-lxc/action/forward_ports' @@ -120,8 +119,6 @@ module Vagrant # b.use CheckDependencies b.use Vagrant::Action::Builtin::Call, Created do |env, b2| if env[:result] - # TODO: If vagrant >=... - b2.use Disconnect b2.use ClearForwardedPorts b2.use Vagrant::Action::Builtin::Call, Vagrant::Action::Builtin::GracefulHalt, :stopped, :running do |env2, b3| if !env2[:result] diff --git a/lib/vagrant-lxc/action/disconnect.rb b/lib/vagrant-lxc/action/disconnect.rb deleted file mode 100644 index 69aee10..0000000 --- a/lib/vagrant-lxc/action/disconnect.rb +++ /dev/null @@ -1,18 +0,0 @@ -module Vagrant - module LXC - module Action - class Disconnect - def initialize(app, env) - @app = app - end - - def call(env) - @app.call env - # FIXME: Vagrant >= 1.1.3 should not need this - # https://github.com/mitchellh/vagrant/compare/715539eac30bc9ae62ddbb6337d13f036f7b774d...ec1bae0#L2R128 - env[:machine].instance_variable_set(:@communicator, nil) - end - end - end - end -end