Skip to content

Commit b1663f1

Browse files
committed
return action ADD if metadata file doesn't define it
1 parent 0bb3fc1 commit b1663f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/automated_ingestion/eessi_task.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def _determine_task_action(self) -> EESSITaskAction:
114114
return EESSITaskAction.ADD
115115
elif action_str == "update":
116116
return EESSITaskAction.UPDATE
117-
return EESSITaskAction.UNKNOWN
117+
# temporarily return EESSITaskAction.ADD as default because the metadata
118+
# file does not yet have an action defined yet
119+
return EESSITaskAction.ADD
118120

119121
@log_function_entry_exit()
120122
def _state_file_with_prefix_exists_in_repo_branch(self, file_path_prefix: str, branch_name: str = None) -> bool:

0 commit comments

Comments
 (0)