Merge "Fix pylint "W" missing-timeout warnings"

This commit is contained in:
Zuul 2023-12-02 00:55:55 +00:00 committed by Gerrit Code Review
commit 0fa45c8684
5 changed files with 8 additions and 5 deletions

View File

@ -57,7 +57,6 @@ disable=
arguments-renamed,
broad-exception-raised,
unspecified-encoding,
missing-timeout,
redundant-u-string-prefix,
unused-private-member,
# "C" Coding convention violations

View File

@ -256,7 +256,8 @@ class MetadataProxyHandler(object):
headers=headers,
data=req.body,
cert=client_cert,
verify=verify_cert)
verify=verify_cert,
timeout=60)
if resp.status_code == 200:
req.response.content_type = resp.headers['content-type']

View File

@ -153,7 +153,8 @@ class MetadataProxyHandler(object):
headers=headers,
data=req.body,
cert=client_cert,
verify=verify_cert)
verify=verify_cert,
timeout=60)
if resp.status_code == 200:
req.response.content_type = resp.headers['content-type']

View File

@ -434,7 +434,8 @@ class _TestMetadataProxyHandlerCacheMixin(object):
data=body,
cert=(self.fake_conf.nova_client_cert,
self.fake_conf.nova_client_priv_key),
verify=False)
verify=False,
timeout=60)
return retval

View File

@ -167,7 +167,8 @@ class TestMetadataProxyHandler(base.BaseTestCase):
data=body,
cert=(self.fake_conf.nova_client_cert,
self.fake_conf.nova_client_priv_key),
verify=False)
verify=False,
timeout=60)
return retval