summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-01-27 14:03:00 -0600
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-29 13:42:01 +0000
commitacd01da065344fdd96fc63fed3b2c6ea8e6e3fac (patch)
tree005fe15dfb5cddf71538af5e9cd39cf73aefa003 /python
parentf97225161941591033aa9216bb2335280522d10d (diff)
downloadvyos-1x-acd01da065344fdd96fc63fed3b2c6ea8e6e3fac.tar.gz
vyos-1x-acd01da065344fdd96fc63fed3b2c6ea8e6e3fac.zip
remote: T5994: fix typo in check_storage for Ftp class
(cherry picked from commit 858ccb20b3e0c326fc7b7f791bd6798cf15b6b46)
Diffstat (limited to 'python')
-rw-r--r--python/vyos/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/remote.py b/python/vyos/remote.py
index b1efcd10b..830770d11 100644
--- a/python/vyos/remote.py
+++ b/python/vyos/remote.py
@@ -148,7 +148,7 @@ class FtpC:
# Almost all FTP servers support the `SIZE' command.
size = conn.size(self.path)
if self.check_space:
- check_storage(path, size)
+ check_storage(location, size)
# No progressbar if we can't determine the size or if the file is too small.
if self.progressbar and size and size > CHUNK_SIZE:
with Progressbar(CHUNK_SIZE / size) as p: