Changing the value type of http_connect_timeout

The value type of http_connect_timeout definition
is changed from Bool to Int value. Python treats
a value more than 1 as True but oslo config defines
Boolean values as 'true, '1', 'yes' and 'on'.
So http_connect_timeout is only configured 1 or None.

Change-Id: I53075cc04d0ccea543f8e657279534208ed03058
Closes-bug: #1368545
This commit is contained in:
Masahito Muroi 2014-10-07 20:57:46 +00:00
parent 4434a77e7c
commit c1eef68186
1 changed files with 4 additions and 4 deletions

View File

@ -254,10 +254,10 @@ _OPTS = [
help='Do not handle authorization requests within the'
' middleware, but delegate the authorization decision to'
' downstream WSGI components'),
cfg.BoolOpt('http_connect_timeout',
default=None,
help='Request timeout value for communicating with Identity'
' API server.'),
cfg.IntOpt('http_connect_timeout',
default=None,
help='Request timeout value for communicating with Identity'
' API server.'),
cfg.IntOpt('http_request_max_retries',
default=3,
help='How many times are we trying to reconnect when'