From b6486ca022508501b9c763e7458fc2d0e44ee106 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 4 Aug 2022 11:36:01 -0700 Subject: [PATCH] Fix strftime format string in infra-prod jobs Our infra prod jobs use a strftime format string to update log file modication times. This format string had a stray '%' in it leading to: "Error while obtaining timestamp for time 2022-08-04T18:02:59 using format %Y-%m%-%dT%H:%M:%S: '-' is a bad directive in format '%Y-%m%-%dT%H:%M:%S'" Fix that by removing the extra '%'. Change-Id: I934ecb4b24244fdd00fa16de6e4c4ae67542e2fe --- playbooks/zuul/run-production-playbook-post.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/zuul/run-production-playbook-post.yaml b/playbooks/zuul/run-production-playbook-post.yaml index c6e7c662d1..ba9ba3a5a1 100644 --- a/playbooks/zuul/run-production-playbook-post.yaml +++ b/playbooks/zuul/run-production-playbook-post.yaml @@ -108,9 +108,9 @@ path: '/var/log/ansible/{{ playbook_name }}.log.{{ _log_timestamp }}' state: touch modification_time: '{{ _log_timestamp }}' - modification_time_format: '%Y-%m%-%dT%H:%M:%S' + modification_time_format: '%Y-%m-%dT%H:%M:%S' access_time: '{{ _log_timestamp }}' - access_time_format: '%Y-%m%-%dT%H:%M:%S' + access_time_format: '%Y-%m-%dT%H:%M:%S' - name: Cleanup old playbook logs on bridge when: not infra_prod_playbook_collect_log