Quiet output slightly on `destroy`, `halt`, and `reload`
This commit is contained in:
parent
0d2cf26ba5
commit
6522a2f6e5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue