Merge "Fix pylint "W" missing-timeout warnings"
This commit is contained in:
commit
0fa45c8684
@ -57,7 +57,6 @@ disable=
|
|||||||
arguments-renamed,
|
arguments-renamed,
|
||||||
broad-exception-raised,
|
broad-exception-raised,
|
||||||
unspecified-encoding,
|
unspecified-encoding,
|
||||||
missing-timeout,
|
|
||||||
redundant-u-string-prefix,
|
redundant-u-string-prefix,
|
||||||
unused-private-member,
|
unused-private-member,
|
||||||
# "C" Coding convention violations
|
# "C" Coding convention violations
|
||||||
|
@ -256,7 +256,8 @@ class MetadataProxyHandler(object):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
data=req.body,
|
data=req.body,
|
||||||
cert=client_cert,
|
cert=client_cert,
|
||||||
verify=verify_cert)
|
verify=verify_cert,
|
||||||
|
timeout=60)
|
||||||
|
|
||||||
if resp.status_code == 200:
|
if resp.status_code == 200:
|
||||||
req.response.content_type = resp.headers['content-type']
|
req.response.content_type = resp.headers['content-type']
|
||||||
|
@ -153,7 +153,8 @@ class MetadataProxyHandler(object):
|
|||||||
headers=headers,
|
headers=headers,
|
||||||
data=req.body,
|
data=req.body,
|
||||||
cert=client_cert,
|
cert=client_cert,
|
||||||
verify=verify_cert)
|
verify=verify_cert,
|
||||||
|
timeout=60)
|
||||||
|
|
||||||
if resp.status_code == 200:
|
if resp.status_code == 200:
|
||||||
req.response.content_type = resp.headers['content-type']
|
req.response.content_type = resp.headers['content-type']
|
||||||
|
@ -434,7 +434,8 @@ class _TestMetadataProxyHandlerCacheMixin(object):
|
|||||||
data=body,
|
data=body,
|
||||||
cert=(self.fake_conf.nova_client_cert,
|
cert=(self.fake_conf.nova_client_cert,
|
||||||
self.fake_conf.nova_client_priv_key),
|
self.fake_conf.nova_client_priv_key),
|
||||||
verify=False)
|
verify=False,
|
||||||
|
timeout=60)
|
||||||
|
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
@ -167,7 +167,8 @@ class TestMetadataProxyHandler(base.BaseTestCase):
|
|||||||
data=body,
|
data=body,
|
||||||
cert=(self.fake_conf.nova_client_cert,
|
cert=(self.fake_conf.nova_client_cert,
|
||||||
self.fake_conf.nova_client_priv_key),
|
self.fake_conf.nova_client_priv_key),
|
||||||
verify=False)
|
verify=False,
|
||||||
|
timeout=60)
|
||||||
|
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user