Add a deprecation error for the old style of configuring host only networks
This commit is contained in:
parent
b5b3805157
commit
b36e3c447e
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue