summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-16 20:13:10 +0200
committerGitHub <noreply@github.com>2021-04-16 20:13:10 +0200
commitd6f9e2432c00a13d248f513add5660c3b99d4c76 (patch)
tree01ab9de7a48a05926582fa26dde00c059737088f /python
parent8fa65823d71d2ec9e4e9d2d33a21162c6b9b9d1d (diff)
parent256f9ac998699221bb62edb5024529c6db798b24 (diff)
downloadvyos-1x-d6f9e2432c00a13d248f513add5660c3b99d4c76.tar.gz
vyos-1x-d6f9e2432c00a13d248f513add5660c3b99d4c76.zip
Merge pull request #809 from erkin/current
util: T3356: Fix password variables
Diffstat (limited to 'python')
-rw-r--r--python/vyos/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/remote.py b/python/vyos/remote.py
index 18e772cc8..ef103f707 100644
--- a/python/vyos/remote.py
+++ b/python/vyos/remote.py
@@ -79,7 +79,7 @@ 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':
- download_sftp(local_path, url.hostname, url.path, url.username, password)
+ download_sftp(local_path, url.hostname, url.path, url.username, url.password)
elif url.scheme == 'tftp':
download_tftp(local_path, url.hostname, url.path)
else:
@@ -94,7 +94,7 @@ 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':
- upload_sftp(local_path, url.hostname, url.path, url.username, password)
+ upload_sftp(local_path, url.hostname, url.path, url.username, url.password)
elif url.scheme == 'tftp':
upload_tftp(local_path, url.hostname, url.path)
else: