[PATCH 08/10] playbooks: ansible-lint fix jinja

Daniel Gomez <[email protected]>
Newsgroups dev.linux.lists.kdevops
Message-ID <[email protected]>
From: Daniel Gomez <[email protected]>

Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>
---
 playbooks/roles/minio_warp_run/tasks/main.yml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/playbooks/roles/minio_warp_run/tasks/main.yml b/playbooks/roles/minio_warp_run/tasks/main.yml
index e6318fc0..6c5abe72 100644
--- a/playbooks/roles/minio_warp_run/tasks/main.yml
+++ b/playbooks/roles/minio_warp_run/tasks/main.yml
@@ -76,13 +76,12 @@
   ansible.builtin.set_fact:
     # Parse duration and add 10 minutes buffer
     benchmark_timeout: >-
-      {%- set duration_str = minio_warp_duration | string -%}
-      {%- if 's' in duration_str -%}
-        {{ (duration_str | replace('s','') | int) + 600 }}
+      {%- set duration_str = minio_warp_duration | string -%} {%- if 's' in duration_str -%}
+        {{ (duration_str | replace('s', '') | int) + 600 }}
       {%- elif 'm' in duration_str -%}
-        {{ (duration_str | replace('m','') | int * 60) + 600 }}
+        {{ (duration_str | replace('m', '') | int * 60) + 600 }}
       {%- elif 'h' in duration_str -%}
-        {{ (duration_str | replace('h','') | int * 3600) + 600 }}
+        {{ (duration_str | replace('h', '') | int * 3600) + 600 }}
       {%- else -%}
         {{ 2400 }}
       {%- endif -%}

-- 
2.50.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.