mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add code that was removed on accident
This commit is contained in:
parent
d34ce4610b
commit
a7b40e5947
1 changed files with 4 additions and 1 deletions
|
@ -578,7 +578,10 @@ class Client(object):
|
|||
if url_data.scheme == "ftp":
|
||||
try:
|
||||
ftp = ftplib.FTP()
|
||||
ftp.connect(url_data.hostname, url_data.port)
|
||||
ftp_port = url_data.port
|
||||
if not ftp_port:
|
||||
ftp_port = 21
|
||||
ftp.connect(url_data.hostname, ftp_port)
|
||||
ftp.login(url_data.username, url_data.password)
|
||||
remote_file_path = url_data.path.lstrip("/")
|
||||
with salt.utils.files.fopen(dest, "wb") as fp_:
|
||||
|
|
Loading…
Add table
Reference in a new issue