QNAP bandit follow up
Adds correct rule to nosec in QNAP driver Follow up to change I171c90a281c7b62c2601131293f9f00a926641e2 Change-Id: Ice0621cd20345cea04539588bdadc93ad6a15a15
This commit is contained in:
parent
433e99519f
commit
33034100ed
|
@ -79,7 +79,7 @@ class QnapAPIExecutor(object):
|
|||
def _prepare_connection(self, isSSL, ip, port):
|
||||
if isSSL:
|
||||
if hasattr(ssl, '_create_unverified_context'):
|
||||
context = ssl._create_unverified_context() # nosec B314
|
||||
context = ssl._create_unverified_context() # nosec B323
|
||||
connection = http_client.HTTPSConnection(ip,
|
||||
port=port,
|
||||
context=context)
|
||||
|
|
Loading…
Reference in New Issue