Quiet output slightly on `destroy`, `halt`, and `reload`

This commit is contained in:
Mitchell Hashimoto 2010-07-31 08:36:33 -07:00
parent 0d2cf26ba5
commit 6522a2f6e5
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,7 @@
## 0.5.1 (unreleased)
- No longer show "Disabling host only networks..." if no host only networks
are destroyed. Quiets `destroy`, `halt`, etc output a bit.
- Updated getting started guide to be more up to date and generic. [GH-125]
- Fixed error with doing a `vagrant up` when no Vagrantfile existed. [GH-128]
- Fixed NFS erroring when NFS wasn't even enabled if `/etc/exports` doesn't

View File

@ -10,10 +10,16 @@ module Vagrant
end
def call(env)
env.logger.info "Disabling host only networks..."
logged = false
env["vm"].vm.network_adapters.each do |adapter|
next if adapter.attachment_type != :host_only
if !logged
env.logger.info "Disabling host only networks..."
logged = true
end
adapter.enabled = false
adapter.save
end