From 50f523b63d5c11805358714b3ad9a4dce3b6d7f0 Mon Sep 17 00:00:00 2001 From: michaelliqx <43013069+michaelliqx@users.noreply.github.com> Date: Fri, 26 Nov 2021 11:13:30 +0800 Subject: [PATCH] fix: fix bug in checking values in _param_values --- sdk/python/kfp/_local_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/kfp/_local_client.py b/sdk/python/kfp/_local_client.py index 41312aa37fa..e12a466dd4a 100644 --- a/sdk/python/kfp/_local_client.py +++ b/sdk/python/kfp/_local_client.py @@ -454,7 +454,7 @@ def _run_group( with open(_altered_list_file, "r") as f: _param_values = json.load(f) for index, _param_value in enumerate(_param_values): - if isinstance(_param_values, object): + if isinstance(_param_values, (dict, list)): _param_value = json.dumps(_param_value) stack[_loop_args.pattern] = _param_value loop_run_name = "{run_name}/{loop_index}".format(