devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 146 forks source link

Don't attempt to update machines that are not running during vagrant up #202

Closed austinlparker closed 8 years ago

austinlparker commented 8 years ago

Fixes #200

Currently, when running vagrant up after vagrant halt (or some other combination of steps that leaves you with powered off but provisioned vagrant machines), the hostmanager plugin will attempt to update the hostsfile on each machine. However, it does this by querying the vagrant environment for created machines. This PR changes the behavior to have hostmanager only attempt to update the hosts file on running vagrant machines during vagrant up.

seth-reeser commented 8 years ago

Thank you for the pull request @austinlparker ! This has been low hanging fruit for quite some time - beat us to it! Looks good. I'm going to run through some QA and once passed will publish a new release.

austinlparker commented 8 years ago

Hey Seth, any word on this?

seth-reeser commented 8 years ago

Should be a day or two - stay tuned.