diff --git a/lib/vagrant/actions/vm/destroy.rb b/lib/vagrant/actions/vm/destroy.rb index d30d78f41..cd7a34d23 100644 --- a/lib/vagrant/actions/vm/destroy.rb +++ b/lib/vagrant/actions/vm/destroy.rb @@ -15,7 +15,7 @@ module Vagrant end def depersist - Env.depersist_vm(@runner) + @runner.env.depersist_vm end end end diff --git a/lib/vagrant/box.rb b/lib/vagrant/box.rb index f50c0f825..e93d9ba92 100644 --- a/lib/vagrant/box.rb +++ b/lib/vagrant/box.rb @@ -51,7 +51,9 @@ module Vagrant # only be used internally. attr_accessor :temp_path - # The environment which this box belongs to + # The environment which this box belongs to. Although this could + # actually be many environments, this points to the environment + # of a specific instance. attr_accessor :env class <