lib/vagrant-hosts/cap/sync_hosts/base.rb in vagrant-hosts-2.1.2 vs lib/vagrant-hosts/cap/sync_hosts/base.rb in vagrant-hosts-2.1.3

- old
+ new

@@ -26,10 +26,10 @@ # @param name [String] The new hostname to apply on the guest def change_host_name(name) case Vagrant::VERSION when /^1\.1/ @machine.guest.change_host_name(name) - when /^1\.[234]/ + when /^1\.[2-5]/ @machine.guest.capability(:change_host_name, name) else raise VagrantHosts::Cap::SyncHosts::UnknownVersion, :vagrant_version => Vagrant::VERSION end end