diff --git a/lib/vagrant-lxc/container.rb b/lib/vagrant-lxc/container.rb index 3de6be3..2ed05e4 100644 --- a/lib/vagrant-lxc/container.rb +++ b/lib/vagrant-lxc/container.rb @@ -15,7 +15,7 @@ module Vagrant include Vagrant::Util::Retryable # This is raised if the container can't be found when initializing it with - # an UUID. + # a name. class NotFound < StandardError; end CONTAINERS_PATH = '/var/lib/lxc' @@ -103,10 +103,6 @@ module Vagrant execute('sudo', "lxc-#{command}", *args) end - def update!(state) - File.open(state_file_path, 'w') { |f| f.print state } - end - def state if @name && lxc(:info, '--name', @name) =~ /^state:[^A-Z]+([A-Z]+)$/ $1.downcase.to_sym