From cd1e1bde1f2c0a910bfc62459f80120de6a5a8fb Mon Sep 17 00:00:00 2001 From: hyokeun Date: Thu, 6 Dec 2018 15:44:23 +0900 Subject: [PATCH] Remove date parse error when updating ABS data Change-Id: I3d594d686be0039a8c2e44769bdee5c70a3a00d3 --- abs/job_update_abs_rbs_status_for_dashboard.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/abs/job_update_abs_rbs_status_for_dashboard.py b/abs/job_update_abs_rbs_status_for_dashboard.py index 6f28507..310867a 100644 --- a/abs/job_update_abs_rbs_status_for_dashboard.py +++ b/abs/job_update_abs_rbs_status_for_dashboard.py @@ -148,6 +148,11 @@ def update_commit_tag_for_abs(bm_ext, param): if git_path is not None: update_repository(git_path) + if len(commit_date.split(' ')) >= 3: + commit_date = ' '.join(commit_date.split(' ')[:2]) + if len(tag_date.split(' ')) >= 3: + tag_date = ' '.join(tag_date.split(' ')[:2]) + #Find git repo id git_path_id = get_git_path_id(git_path) assert git_path_id != 0 -- 2.7.4