cogitatio/vagrant-hostsupdater — pull request #17 by mal (2013-06-28 19:28:15+00:00)
Title: Fixes #5 - Only remove hosts entry when VM is destroyed

Only remove hosts if the destroy is confirmed, otherwise go away silently and hide in a corner and pretend nothing happened!

This a very nasty hack. I'm sure there are better ways to do it, and if someone is willing to rewrite it in a more sane way I'm all for that. Unfortunately I don't have the time to spend on it, so I just got it to a functional state.

![](http://img805.imageshack.us/img805/4285/gszz.jpg)