Commit af638a4 1 parent 084ed7b commit af638a4 Copy full SHA for af638a4
File tree 1 file changed +4
-16
lines changed
1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -358,21 +358,9 @@ def _get_archived_workflow_wf_name_and_team_project(
358
358
# call workflow details endpoint:
359
359
workflow_details = self .get_workflow_details (None , archived_workflow_uid )
360
360
# get the workflow given name from the parsed details:
361
- given_name = (
362
- workflow_details .get ("wf_name" , "" )
363
- if isinstance (workflow_details , dict )
364
- else ""
365
- )
366
- team_project = (
367
- workflow_details .get (GEN3_TEAM_PROJECT_METADATA_LABEL , "" )
368
- if isinstance (workflow_details , dict )
369
- else ""
370
- )
371
- gen3username = (
372
- workflow_details .get (GEN3_USER_METADATA_LABEL , "" )
373
- if isinstance (workflow_details , dict )
374
- else ""
375
- )
361
+ given_name = workflow_details ["wf_name" ]
362
+ team_project = workflow_details [GEN3_TEAM_PROJECT_METADATA_LABEL ]
363
+ gen3username = workflow_details [GEN3_USER_METADATA_LABEL ]
376
364
self .workflow_given_names_cache [archived_workflow_uid ] = (
377
365
given_name ,
378
366
team_project ,
@@ -714,7 +702,7 @@ def check_user_monthly_workflow_cap(
714
702
self ,
715
703
request_token : str ,
716
704
billing_id : Optional [int ] = None ,
717
- custom_limit : Optional [int ] = None
705
+ custom_limit : Optional [int ] = None ,
718
706
):
719
707
"""
720
708
Query Argo service to see how many workflow runs user already
You can’t perform that action at this time.
0 commit comments