Skip to content

Commit 94392c9

Browse files
committed
Handle unknown status
1 parent 445daee commit 94392c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aws/submissions.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
status_codes = {
1111
"SUCCEEDED": "S",
1212
"ACTIVE": "P",
13-
"FAILED": "F"
13+
"FAILED": "F",
14+
"UNKNOWN": "U"
1415
}
1516

1617
def format_status_record(status:dict, automate_manager:AutomateManager) -> dict:
@@ -22,7 +23,7 @@ def format_status_record(status:dict, automate_manager:AutomateManager) -> dict:
2223
status["submission_time"])
2324

2425
automate_status = {
25-
"status": "Unknown",
26+
"status": "UNKNOWN",
2627
"details": {
2728
"description": "Unknown"
2829
}

0 commit comments

Comments
 (0)