Skip to content

Commit

Permalink
AIP-9061 lowercase cli params
Browse files Browse the repository at this point in the history
  • Loading branch information
talebzeghmi committed Jan 11, 2025
1 parent ffc807a commit 819f467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metaflow/plugins/aip/aip_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 819f467

Please sign in to comment.