summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcanoziia <canoziia@qq.com>2025-04-25 11:39:03 +0800
committercanoziia <canoziia@qq.com>2025-04-25 11:39:03 +0800
commit1deea4067298034a8f7ef803173b7e2dc680a9cb (patch)
treef6b79fdcfb87e306a7e53ddbea451adea0eaaa24 /src
parente6909ffe8fc474e181e9b711f1b08974e152a0a7 (diff)
downloadvyos-1x-1deea4067298034a8f7ef803173b7e2dc680a9cb.tar.gz
vyos-1x-1deea4067298034a8f7ef803173b7e2dc680a9cb.zip
image_installer: T7394: add system image raise "Error: argument of type 'NoneType' is not iterable"
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