title: vagrant-hostmanager (1.8.6) error when updating guest hosts?
body: <p>I have vagrant-hostmanager 1.8.6 installed, and when I run <code>vagrant hostmanager</code> I end up with the following error:</p>
  
  <pre><code>[vagrant-hostmanager:guest] Updating hosts file on the virtual machine puppet_server...
  sh: 1: Syntax error: "(" unexpected
  </code></pre>
  
  <p>...and the <code>/etc/hosts</code> file is not updated.  Is there a way to fix this?</p>
  
  <p>Here is my VagrantFile:</p>
  
  <pre><code>Vagrant.configure(2) do |config|
  
    config.vm.box = "blah/turnkey-lamp-14.2"
  
    config.vm.provider "virtualbox" do |vb|
        vb.cpus = 2
        vb.gui = true
    end
  
    config.vm.boot_timeout = 10000
    config.vm.network "private_network", type: "dhcp"
  
    #config.vm.provision :hostmanager
  
    config.ssh.insert_key = false
    #config.ssh.private_key_path = "/mnt/vm_lab/vagrant_box_storage/.vagrant.d/insecure_private_key"
    config.ssh.forward_agent = true
  
    config.hostmanager.enabled = true
    config.hostmanager.manage_guest = true
    #config.hostmanager.manage_host = true
  
    config.hostmanager.ip_resolver = proc do |vm, resolving_vm|
        if vm.id
           `VBoxManage guestproperty get #{vm.id} "/VirtualBox/GuestInfo/Net/1/V4/IP".split()[1]`
        end
    end
  
    config.vm.define :puppet_server do |srv|
        srv.vm.hostname = "puppet-server"
        srv.vm.network :private_network, ip: '10.0.3.15'
        srv.vm.provision "shell", inline: $puppetServerScript 
        srv.vm.synced_folder "src/puppet-server", "/etc/puppet", create: true
  
    end
  
    config.vm.define :bareOSdirector do |srv|
        srv.vm.hostname = "bareOSdirector"
        srv.vm.network :private_network, ip: '10.0.3.10'
        srv.vm.provision "shell", inline: $puppetClientBareOSdir
    end
  
    config.vm.define :webserver do |srv|
        srv.vm.hostname = "webserver"
        srv.vm.network :private_network, ip: '10.0.3.8'   
        srv.vm.provision "shell", inline: $puppetClientWebserver
    end
  end
  </code></pre>
  
  <p>I thought it had something to do with the hosts file itself, so I emptied it and re-ran the command, but it still doesn't update it.</p>