From c85be323f537ff31991e618319bbf9763e16b65c Mon Sep 17 00:00:00 2001 From: Chenyu Li Date: Thu, 19 Jan 2023 08:16:58 -0800 Subject: [PATCH] fix MP_CONTEXT is not JSON serializable (#6650) --- core/dbt/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/dbt/utils.py b/core/dbt/utils.py index 987371b6b02..370480ac11c 100644 --- a/core/dbt/utils.py +++ b/core/dbt/utils.py @@ -642,7 +642,10 @@ def args_to_dict(args): dict_args = {} # remove args keys that clutter up the dictionary for key in var_args: - if key == "cls": + if key.lower() in var_args and key == key.upper(): + # skip all capped keys being introduced by Flags in dbt.cli.flags + continue + if key in ["cls", "mp_context"]: continue if var_args[key] is None: continue