Merge pull request #3599 from mitchellh/deprecate-warnings-for-unused-halt-config-props
Display deprecation warning for unused halt config properties
This commit is contained in:
commit
2362e7d5f0
|
@ -8,11 +8,20 @@ module VagrantPlugins
|
||||||
attr_accessor :device
|
attr_accessor :device
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@halt_timeout = 30
|
@halt_timeout = UNSET_VALUE
|
||||||
@halt_check_interval = 1
|
@halt_check_interval = UNSET_VALUE
|
||||||
@suexec_cmd = 'pfexec'
|
@suexec_cmd = 'pfexec'
|
||||||
@device = "e1000g"
|
@device = "e1000g"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def finalize!
|
||||||
|
if @halt_timeout != UNSET_VALUE
|
||||||
|
puts "smartos.halt_timeout is deprecated and will be removed in Vagrant 1.7"
|
||||||
|
end
|
||||||
|
if @halt_check_interval != UNSET_VALUE
|
||||||
|
puts "smartos.halt_check_interval is deprecated and will be removed in Vagrant 1.7"
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,11 +8,20 @@ module VagrantPlugins
|
||||||
attr_accessor :device
|
attr_accessor :device
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@halt_timeout = 30
|
@halt_timeout = UNSET_VALUE
|
||||||
@halt_check_interval = 1
|
@halt_check_interval = UNSET_VALUE
|
||||||
@suexec_cmd = 'sudo'
|
@suexec_cmd = 'sudo'
|
||||||
@device = "e1000g"
|
@device = "e1000g"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def finalize!
|
||||||
|
if @halt_timeout != UNSET_VALUE
|
||||||
|
puts "solaris.halt_timeout is deprecated and will be removed in Vagrant 1.7"
|
||||||
|
end
|
||||||
|
if @halt_check_interval != UNSET_VALUE
|
||||||
|
puts "solaris.halt_check_interval is deprecated and will be removed in Vagrant 1.7"
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,11 +12,20 @@ module VagrantPlugins
|
||||||
attr_accessor :device
|
attr_accessor :device
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@halt_timeout = 30
|
@halt_timeout = UNSET_VALUE
|
||||||
@halt_check_interval = 1
|
@halt_check_interval = UNSET_VALUE
|
||||||
@suexec_cmd = 'sudo'
|
@suexec_cmd = 'sudo'
|
||||||
@device = "net"
|
@device = "net"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def finalize!
|
||||||
|
if @halt_timeout != UNSET_VALUE
|
||||||
|
puts "solaris11.halt_timeout is deprecated and will be removed in Vagrant 1.7"
|
||||||
|
end
|
||||||
|
if @halt_check_interval != UNSET_VALUE
|
||||||
|
puts "solaris11.halt_check_interval is deprecated and will be removed in Vagrant 1.7"
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue