Skip to content

Commit

Permalink
fix: add missing call to convert_pod_label_to_gen3teamproject
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Nov 15, 2023
1 parent 347caad commit 7ce1f9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/argowrapper/engine/helpers/argo_engine_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def parse_list_item(
result["wf_name"] = (
workflow_details["metadata"].get("annotations", {}).get("workflow_name")
)
result[GEN3_TEAM_PROJECT_METADATA_LABEL] = (
result[GEN3_TEAM_PROJECT_METADATA_LABEL] = convert_pod_label_to_gen3teamproject(
workflow_details["metadata"]
.get("labels")
.get(GEN3_TEAM_PROJECT_METADATA_LABEL)
Expand Down
4 changes: 3 additions & 1 deletion test/test_argo_engine_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ def test_parse_list_item():
"creationTimestamp": "test_creationtime",
"labels": {
GEN3_USER_METADATA_LABEL: "dummyuser",
GEN3_TEAM_PROJECT_METADATA_LABEL: "dummyteam",
GEN3_TEAM_PROJECT_METADATA_LABEL: argo_engine_helper.convert_gen3teamproject_to_pod_label(
"dummyteam"
),
},
},
"spec": {"shutdown": "Terminate"},
Expand Down

0 comments on commit 7ce1f9a

Please sign in to comment.