diff --git a/lib/vagrant/config/vm.rb b/lib/vagrant/config/vm.rb index 22e9a3f55..ae124912b 100644 --- a/lib/vagrant/config/vm.rb +++ b/lib/vagrant/config/vm.rb @@ -49,6 +49,19 @@ module Vagrant end def network(type, *args) + if !type.kind_of?(Symbol) + raise Errors::DeprecationError, :message => <<-MESSAGE +`config.vm.network` changed in 0.9.0 where the first argument is +now the type of network and the remaining arguments are options for +that type. For example, host only networks are now configured like +so: + + config.vm.network :hostonly, "172.24.24.24" + +Please change your configurations to match this new syntax. + MESSAGE + end + @networks << [type, args] end diff --git a/templates/locales/en.yml b/templates/locales/en.yml index d1b3104dc..a18478971 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -35,7 +35,6 @@ en: You are using a feature that has been removed in this version. Explanation: %{message} - Note that this error message will not appear in the next version of Vagrant. dotfile_is_directory: |- The local file Vagrant uses to store data ".vagrant" already exists