From c0b7d7c52c09da981c3b55d44e4564ce8b24bc86 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Jan 06 2021 17:25:05 +0000 Subject: check-for-arches: discard stderr to remove it from zuul task stdout This change fixes the playbook usage in zuul where stderr is merged into the task stdout. --- diff --git a/playbooks/rpm/check-for-arches.yaml b/playbooks/rpm/check-for-arches.yaml index 2f9989a..9704bbc 100644 --- a/playbooks/rpm/check-for-arches.yaml +++ b/playbooks/rpm/check-for-arches.yaml @@ -1,7 +1,7 @@ - hosts: localhost tasks: - name: Check for noarch - command: sh -c "rpm --specfile *.spec | rev | cut -d'.' -f 1 | rev | grep -v '^noarch$'" + command: sh -c "rpm --specfile *.spec 2> /dev/null | rev | cut -d'.' -f 1 | rev | grep -v '^noarch$'" register: tests_noarch failed_when: false args: