Fix issue with "Waiting for cleanup" message appearing twice in some cases. [closes GH-145]
This commit is contained in:
parent
a699122260
commit
3784eb82fb
|
@ -1,5 +1,7 @@
|
|||
## 0.6.0 (unreleased)
|
||||
|
||||
- Fixed issue with "Waiting for cleanup" message appearing twice in
|
||||
some cases. [GH-145]
|
||||
- Converted CLI to use Thor. As a tradeoff, there are some backwards
|
||||
incompatibilities:
|
||||
* `vagrant package` - The `--include` flag now separates filenames
|
||||
|
|
|
@ -4,6 +4,7 @@ module Vagrant
|
|||
# the environment.
|
||||
class Action
|
||||
include Util
|
||||
@@reported_interrupt = false
|
||||
|
||||
class << self
|
||||
# Returns the list of registered actions.
|
||||
|
@ -59,8 +60,9 @@ module Vagrant
|
|||
abort
|
||||
end
|
||||
|
||||
env.ui.info "Waiting for cleanup before exiting..."
|
||||
env.ui.info "Waiting for cleanup before exiting..." if !@@reported_interrupt
|
||||
action_environment.error!(:interrupt)
|
||||
@@reported_interrupt = true
|
||||
end
|
||||
|
||||
Busy.busy(int_callback) { callable.call(action_environment) }
|
||||
|
|
Loading…
Reference in New Issue