config.rb: set default port based on @ssl
This commit is contained in:
parent
52d8fddf38
commit
243cc5dc37
|
@ -25,8 +25,8 @@ module VagrantPlugins
|
||||||
@username = "vagrant" if @username == UNSET_VALUE
|
@username = "vagrant" if @username == UNSET_VALUE
|
||||||
@password = "vagrant" if @password == UNSET_VALUE
|
@password = "vagrant" if @password == UNSET_VALUE
|
||||||
@host = nil if @host == UNSET_VALUE
|
@host = nil if @host == UNSET_VALUE
|
||||||
@port = 5985 if @port == UNSET_VALUE
|
@port = (@ssl ? 5986 : 5985) if @port == UNSET_VALUE
|
||||||
@guest_port = 5985 if @guest_port == UNSET_VALUE
|
@guest_port = (@ssl ? 5986 : 5985) if @guest_port == UNSET_VALUE
|
||||||
@max_tries = 20 if @max_tries == UNSET_VALUE
|
@max_tries = 20 if @max_tries == UNSET_VALUE
|
||||||
@timeout = 1800 if @timeout == UNSET_VALUE
|
@timeout = 1800 if @timeout == UNSET_VALUE
|
||||||
@ssl = false if @ssl == UNSET_VALUE
|
@ssl = false if @ssl == UNSET_VALUE
|
||||||
|
|
Loading…
Reference in New Issue