From ff26e52b862903311c8aa0c8594e666a9782896b Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Wed, 7 May 2025 18:09:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=88=E7=B4=84=E8=A1=8C=E3=82=92?= =?UTF-8?q?=E7=A9=BA=E8=A1=8C=E3=81=A7=E5=9F=8B=E3=82=81=E3=82=8B=E5=87=A6?= =?UTF-8?q?=E7=90=86=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecs/dataimport/dataimport/chk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecs/dataimport/dataimport/chk.py b/ecs/dataimport/dataimport/chk.py index 834207ef..6f71a0de 100644 --- a/ecs/dataimport/dataimport/chk.py +++ b/ecs/dataimport/dataimport/chk.py @@ -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(