From 91742055e05c70173028ffed6d22bf9963cf51f5 Mon Sep 17 00:00:00 2001
From: Maxime Guyot <Miouge1@users.noreply.github.com>
Date: Wed, 5 Aug 2020 10:56:28 +0200
Subject: [PATCH] Fix E306 in scripts/ (#6496)

---
 scripts/collect-info.yaml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/collect-info.yaml b/scripts/collect-info.yaml
index 8fd3e5c03..957c1aed7 100644
--- a/scripts/collect-info.yaml
+++ b/scripts/collect-info.yaml
@@ -112,8 +112,8 @@
           {%- endfor %}
       when: "'etcd' in groups"
 
-    - name: Storing commands output  # noqa 306
-      shell: "{{ item.cmd }} 2>&1 | tee {{ item.name }}"
+    - name: Storing commands output
+      shell: "{{ item.cmd }} &> {{ item.name }}"
       failed_when: false
       with_items: "{{ commands }}"
       when: item.when | default(True)
-- 
GitLab