mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ignore Bandit's B402(blacklist) regarding ftplib
The choice to use it or not is on the user's hands.
This commit is contained in:
parent
a4dd864ef6
commit
e3cb97a4ed
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ Classes that manage file clients
|
|||
"""
|
||||
import contextlib
|
||||
import errno
|
||||
import ftplib
|
||||
import ftplib # nosec
|
||||
import http.server
|
||||
import logging
|
||||
import os
|
||||
|
@ -577,7 +577,7 @@ class Client:
|
|||
)
|
||||
if url_data.scheme == "ftp":
|
||||
try:
|
||||
ftp = ftplib.FTP()
|
||||
ftp = ftplib.FTP() # nosec
|
||||
ftp_port = url_data.port
|
||||
if not ftp_port:
|
||||
ftp_port = 21
|
||||
|
|
Loading…
Add table
Reference in a new issue