diff options
author | John Estabrook <jestabro@vyos.io> | 2023-12-13 11:03:06 -0600 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-12-13 19:28:49 +0000 |
commit | 265cdc4cebc5818c2387bf4f803a9fd2be416928 (patch) | |
tree | 2131e76e970deac012d9838fb12a8c0aaf69c70e /python/vyos/config_mgmt.py | |
parent | 000d0a384f99cf71056c4639cbbc3be6bb2cf425 (diff) | |
download | vyos-1x-265cdc4cebc5818c2387bf4f803a9fd2be416928.tar.gz vyos-1x-265cdc4cebc5818c2387bf4f803a9fd2be416928.zip |
T5774: fix regressions in remote.upload and use in config_mgmt
(cherry picked from commit 6b325962a4b8b3e67d7976bf161aed34a9fe6cce)
Diffstat (limited to 'python/vyos/config_mgmt.py')
-rw-r--r-- | python/vyos/config_mgmt.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index fd0fa7a75..e57129ce5 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -386,15 +386,8 @@ Proceed ?''' _, _, netloc = url.netloc.rpartition("@") redacted_location = urlunsplit(url._replace(netloc=netloc)) print(f" {redacted_location}", end=" ", flush=True) - try: - upload(archive_config_file, f'{location}/{remote_file}', - source_host=source_address, raise_error=True) - print("OK") - except Exception as e: - print("FAILED!") - print() - print(indent(str(e), " > ")) - print() + upload(archive_config_file, f'{location}/{remote_file}', + source_host=source_address) # op-mode functions # |