fix: 予約行を空行で埋める処理を追加

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2025-05-07 18:09:11 +09:00
parent e31b20692c
commit ff26e52b86

View File

@ -90,6 +90,9 @@ def check(bucket_name, target_data_source, target_file_name, settings_key, log_i
settings_list = []
for line in io.TextIOWrapper(io.BytesIO(settings_obj_response["Body"].read()), encoding='utf-8'):
settings_list.append(line.rstrip('\n'))
# 設定ファイルに記載のない行を空文字として扱い、予約行とする
for _ in range(len(SETTINGS_ITEM) - len(settings_list)):
settings_list.append('')
work_key = target_data_source + DIRECTORY_WORK + target_file_name
work_obj_response = s3_client.get_object(