Sometimes, for unknown reasons, Vagrant thinks a machine exists when it does not. Under these conditions cycling through the active_machines list will produce an error:
==> plain-vm: Setting hostname...
==> plain-vm: Configuring and enabling network interfaces...
==> plain-vm: Mounting shared folders...
plain-vm: /vagrant => /Users/sharpie/Source/puppet-debugging-kit
==> plain-vm: Running provisioner: hosts...
The machine with the name 'pe-201520-agent' was not found configured for
this Vagrant environment.
The VagrantHosts::Addresses module provides an all_machines method that guards against this. The new sync_hosts functionality should use it.
Sometimes, for unknown reasons, Vagrant thinks a machine exists when it does not. Under these conditions cycling through the
active_machines
list will produce an error:The
VagrantHosts::Addresses
module provides anall_machines
method that guards against this. The newsync_hosts
functionality should use it.