From 819f46707982fdf80b9f1797fc221039b08ac445 Mon Sep 17 00:00:00 2001 From: Taleb Zeghmi Date: Fri, 10 Jan 2025 20:17:53 -0800 Subject: [PATCH] AIP-9061 lowercase cli params --- metaflow/plugins/aip/aip_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metaflow/plugins/aip/aip_cli.py b/metaflow/plugins/aip/aip_cli.py index d29bd2ba8d..b6d72ef352 100644 --- a/metaflow/plugins/aip/aip_cli.py +++ b/metaflow/plugins/aip/aip_cli.py @@ -415,13 +415,13 @@ def run( def _get_flow_parameters(kwargs, obj) -> Dict[str, Any]: def _convert_value(param: parameters.Parameter): - v = kwargs.get(param.name) + v = kwargs.get(param.name.lower()) return json.dumps(v) if param.kwargs.get("type") == JSONType else v flow_parameters = { param.name: _convert_value(param) for _, param in obj.flow._get_parameters() - if kwargs.get(param.name) is not None + if kwargs.get(param.name.lower()) is not None } return flow_parameters