summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-27 21:30:00 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-11-27 21:32:13 -0600
commit35f69340ef189e27b380074bb687ad58f29e9433 (patch)
tree1146ad3c5e4210e7eed30f9152fe3ba1b59478cd /src
parent0fae5b412a359874f1d61a5330064e87a7e6b899 (diff)
downloadvyos-1x-35f69340ef189e27b380074bb687ad58f29e9433.tar.gz
vyos-1x-35f69340ef189e27b380074bb687ad58f29e9433.zip
image-tools: T5751: restore arg raise_error for non-interactive use
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/image_installer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index e327fef67..df5d897b7 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -389,13 +389,14 @@ def image_fetch(image_path: str, no_prompt: bool = False) -> Path:
# check a type of path
if urlparse(image_path).scheme:
# download an image
- download(ISO_DOWNLOAD_PATH, image_path, True, True)
+ download(ISO_DOWNLOAD_PATH, image_path, True, True,
+ raise_error=True)
# download a signature
sign_file = (False, '')
for sign_type in ['minisig', 'asc']:
try:
download(f'{ISO_DOWNLOAD_PATH}.{sign_type}',
- f'{image_path}.{sign_type}')
+ f'{image_path}.{sign_type}', raise_error=True)
sign_file = (True, sign_type)
break
except Exception: