goodhosts / vagrant

Vagrant plugin that use goodhosts to manipulate hosts files
https://rubygems.org/gems/vagrant-goodhosts/
MIT License
17 stars 8 forks source link

attempt to prevent multiple runs of goodhosts #18

Closed tomjn closed 3 years ago

tomjn commented 3 years ago

Not sure if this works

tomjn commented 3 years ago

@mte this might fix #16 I'm not sure though

Mte90 commented 3 years ago

I tried with a similar code few days ago with no results butl et's try again :-D

Mte90 commented 3 years ago
Bringing machine 'default' up with 'virtualbox' provider...
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 demo.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 woocommerce.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 tideways.vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 xhgui.vvv.test
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 demo.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 woocommerce.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 tideways.vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 xhgui.vvv.test
==> default: Checking if box 'ubuntu/bionic64' version '20201016.0.0' is up to date...
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 demo.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 woocommerce.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 tideways.vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 xhgui.vvv.test
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 demo.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 woocommerce.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 tideways.vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 xhgui.vvv.test
==> default: [vagrant-goodhosts] Checking for host entries
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 demo.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 woocommerce.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 tideways.vvv.test
==> default: [vagrant-goodhosts] - found entry for: 192.168.50.4 xhgui.vvv.test

I am getting this output with this patch, it is not working.