summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@vyos.io>2025-04-25 21:48:09 +0200
committerGitHub <noreply@github.com>2025-04-25 21:48:09 +0200
commit3614f3553cafeab5c6b8b3c9de9601475c99a348 (patch)
treefc85d873f0a8747344031b1c5817fc4920d199cc /src
parentdf2e9cbc2cbe04a6de0eedfe9154afc87bd3d45d (diff)
parent1deea4067298034a8f7ef803173b7e2dc680a9cb (diff)
downloadvyos-1x-3614f3553cafeab5c6b8b3c9de9601475c99a348.tar.gz
vyos-1x-3614f3553cafeab5c6b8b3c9de9601475c99a348.zip
image_installer: T7394: add system image raise "Error: argument of type 'NoneType' is not iterable" (#4471)
Co-authored-by: canoziia <canoziia@qq.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/image_installer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index 2660309a5..5d52aabb9 100755
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -491,6 +491,8 @@ def get_cli_kernel_options(config_file: str) -> list:
config = ConfigTree(read_file(config_file))
config_dict = loads(config.to_json())
kernel_options = dict_search('system.option.kernel', config_dict)
+ if kernel_options is None:
+ kernel_options = {}
cmdline_options = []
# XXX: This code path and if statements must be kept in sync with the Kernel