Skip to content

Commit df37de7

Browse files
committed
kdevops_archive: fix debug output
Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 6e8ddbe commit df37de7

File tree

1 file changed

+2
-1
lines changed
  • playbooks/roles/kdevops_archive/tasks

1 file changed

+2
-1
lines changed

playbooks/roles/kdevops_archive/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@
145145
msg: |
146146
Found archive file:
147147
Path: {{ item.stat.path }}
148+
Type: {{ item.stat.path | regex_replace('.*\\.(\\w+)$', '\\1') | upper }}
148149
Size: {{ (item.stat.size / 1024 / 1024) | round(2) }} MB
149-
Last modified: {{ item.stat.mtime | datetime }}
150+
Last modified: {{ item.stat.mtime | strftime("%Y-%m-%d %H:%M:%S") }}
150151
loop: "{{ archive_stats.results }}"
151152

152153
- name: Check if kdevops-results-archive directory exists

0 commit comments

Comments
 (0)