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
changes/04/852204/1
Clark Boylan 4 months ago
parent 11494a31a4
commit b6486ca022
  1. 4
      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

Loading…
Cancel
Save