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
|
end
|
||||||
|
|
||||||
def network(type, *args)
|
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]
|
@networks << [type, args]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,6 @@ en:
|
||||||
You are using a feature that has been removed in this version. Explanation:
|
You are using a feature that has been removed in this version. Explanation:
|
||||||
|
|
||||||
%{message}
|
%{message}
|
||||||
|
|
||||||
Note that this error message will not appear in the next version of Vagrant.
|
Note that this error message will not appear in the next version of Vagrant.
|
||||||
dotfile_is_directory: |-
|
dotfile_is_directory: |-
|
||||||
The local file Vagrant uses to store data ".vagrant" already exists
|
The local file Vagrant uses to store data ".vagrant" already exists
|
||||||
|
|
Loading…
Reference in New Issue