From 95b9ba36b0b48fd9173a06819160554ec4467927 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 16 Oct 2019 15:17:45 +0800 Subject: [PATCH] acrn-config: acrn-config: add white list to skip item check Some acrn-dm arguments are not needed when launch some vm, but the item check fucntion still has strict check on the arguments, which result in the script generating failure. This patch add whilte list to skip the check. Tracked-On: #3852 Signed-off-by: Wei Liu Acked-by: Victor Sun --- misc/acrn-config/library/launch_cfg_lib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/acrn-config/library/launch_cfg_lib.py b/misc/acrn-config/library/launch_cfg_lib.py index f51cdec52..5b1d14052 100644 --- a/misc/acrn-config/library/launch_cfg_lib.py +++ b/misc/acrn-config/library/launch_cfg_lib.py @@ -462,6 +462,10 @@ def args_aval_check(arg_list, item, avl_list): """ # args should be set into launch xml from webUI i_cnt = 1 + skip_check_list = ['gvt_args', 'rootfs_dev'] + if item in skip_check_list: + return + for arg_str in arg_list.values(): if arg_str == None or not arg_str.strip(): empty_err(i_cnt, item)