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 <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu 2019-10-16 15:17:45 +08:00 committed by wenlingz
parent fc40ee4c83
commit 95b9ba36b0
1 changed files with 4 additions and 0 deletions

View File

@ -462,6 +462,10 @@ def args_aval_check(arg_list, item, avl_list):
""" """
# args should be set into launch xml from webUI # args should be set into launch xml from webUI
i_cnt = 1 i_cnt = 1
skip_check_list = ['gvt_args', 'rootfs_dev']
if item in skip_check_list:
return
for arg_str in arg_list.values(): for arg_str in arg_list.values():
if arg_str == None or not arg_str.strip(): if arg_str == None or not arg_str.strip():
empty_err(i_cnt, item) empty_err(i_cnt, item)