Fixed `vagrant resume` to properly resume a suspend VM [closes GH-122]
This commit is contained in:
parent
8ea6d2bc40
commit
96ea715e30
|
@ -1,5 +1,6 @@
|
|||
## 0.5.1 (unreleased)
|
||||
|
||||
- Fixed `vagrant resume` to properly resume a suspended VM. [GH-122]
|
||||
- Fixed `halt`, `destroy`, `reload` to where they failed if the VM was
|
||||
in a saved state. [GH-123]
|
||||
- Added `config.chef.recipe_url` which allows you to specify a URL to
|
||||
|
|
|
@ -9,7 +9,7 @@ module Vagrant
|
|||
def call(env)
|
||||
if env["vm"].vm.saved?
|
||||
env.logger.info "Resuming suspended VM..."
|
||||
env["actions"].run(:start)
|
||||
env["actions"].run(Boot)
|
||||
end
|
||||
|
||||
@app.call(env)
|
||||
|
|
|
@ -19,7 +19,7 @@ class ResumeVMActionTest < Test::Unit::TestCase
|
|||
@internal_vm.expects(:saved?).returns(true)
|
||||
|
||||
seq = sequence("seq")
|
||||
@env.env.actions.expects(:run).with(:start).once.in_sequence(seq)
|
||||
@env.env.actions.expects(:run).with(Vagrant::Action::VM::Boot).once.in_sequence(seq)
|
||||
@app.expects(:call).with(@env).once.in_sequence(seq)
|
||||
@instance.call(@env)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue