Skip to content

Commit 0c8dbdd

Browse files
authored
fix default dict for json loads (#2414)
json.loads does not work with {}. It needs to be `'{}'` .
1 parent ae97f8c commit 0c8dbdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metaflow/plugins/argo/argo_workflows_deployer_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def from_deployment(cls, identifier: str, metadata: Optional[str] = None):
277277

278278
flow_name = metadata_annotations.get("metaflow/flow_name", "")
279279
username = metadata_annotations.get("metaflow/owner", "")
280-
parameters = json.loads(metadata_annotations.get("metaflow/parameters", {}))
280+
parameters = json.loads(metadata_annotations.get("metaflow/parameters", "{}"))
281281

282282
# these two only exist if @project decorator is used..
283283
branch_name = metadata_annotations.get("metaflow/branch_name", None)

0 commit comments

Comments
 (0)