Merge "mypy: Allow mypy to pass with requests-packaged urllib3"
This commit is contained in:
commit
f18af98aee
@ -296,10 +296,9 @@ class VolumeManager(manager.CleanableManager,
|
|||||||
|
|
||||||
if self.configuration.suppress_requests_ssl_warnings:
|
if self.configuration.suppress_requests_ssl_warnings:
|
||||||
LOG.warning("Suppressing requests library SSL Warnings")
|
LOG.warning("Suppressing requests library SSL Warnings")
|
||||||
requests.packages.urllib3.disable_warnings(
|
rpu = requests.packages.urllib3 # type: ignore
|
||||||
requests.packages.urllib3.exceptions.InsecureRequestWarning)
|
rpu.disable_warnings(rpu.exceptions.InsecureRequestWarning)
|
||||||
requests.packages.urllib3.disable_warnings(
|
rpu.disable_warnings(rpu.exceptions.InsecurePlatformWarning)
|
||||||
requests.packages.urllib3.exceptions.InsecurePlatformWarning)
|
|
||||||
|
|
||||||
self.key_manager = key_manager.API(CONF)
|
self.key_manager = key_manager.API(CONF)
|
||||||
self.driver = importutils.import_object(
|
self.driver = importutils.import_object(
|
||||||
|
Loading…
Reference in New Issue
Block a user