summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorerkin <e.altunbas@vyos.io>2021-03-30 15:43:05 +0300
committererkin <e.altunbas@vyos.io>2021-03-30 15:43:05 +0300
commita32d5e824df9e16d4e6c9198f093fd9f1baffcc6 (patch)
treecfb86abea2c8bd021f8e653d75dcc5bfcdbc8431 /python/vyos
parent229a884166946fb2ce1d7854bf62ed6019114915 (diff)
downloadvyos-1x-a32d5e824df9e16d4e6c9198f093fd9f1baffcc6.tar.gz
vyos-1x-a32d5e824df9e16d4e6c9198f093fd9f1baffcc6.zip
Remove SFTP empty password check
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/remote.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/python/vyos/remote.py b/python/vyos/remote.py
index 0c0de8e0f..18e772cc8 100644
--- a/python/vyos/remote.py
+++ b/python/vyos/remote.py
@@ -79,10 +79,6 @@ def download(local_path, urlstring):
username = url.username if url.username else 'anonymous'
download_ftp(local_path, url.hostname, url.path, username, url.password)
elif url.scheme == 'sftp' or url.scheme == 'scp':
- # None means we don't want to use password authentication.
- # An empty string (what urlparse returns when a password doesn't
- # exist in the URL) means the password is an empty string.
- password = url.password if url.password else None
download_sftp(local_path, url.hostname, url.path, url.username, password)
elif url.scheme == 'tftp':
download_tftp(local_path, url.hostname, url.path)
@@ -98,7 +94,6 @@ def upload(local_path, urlstring):
username = url.username if url.username else 'anonymous'
upload_ftp(local_path, url.hostname, url.path, username, url.password)
elif url.scheme == 'sftp' or url.scheme == 'scp':
- password = url.password if url.password else None
upload_sftp(local_path, url.hostname, url.path, url.username, password)
elif url.scheme == 'tftp':
upload_tftp(local_path, url.hostname, url.path)