From 761396c17710e1162cd37289e46f76610ed66f3c Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Fri, 15 Sep 2017 11:50:11 -0600 Subject: [PATCH] Hide yum-config-manager output The yum-config-manager command has a ton of output and it's not possible to make it more quiet with command line arguments. This patch ensures that the output is removed. Change-Id: I84fee9e76db638b2561152d60b17d45bbf60b3cf --- test-ansible-functional.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test-ansible-functional.sh b/test-ansible-functional.sh index 4b3aaa97..7699d605 100755 --- a/test-ansible-functional.sh +++ b/test-ansible-functional.sh @@ -106,10 +106,10 @@ function gate_job_exit_tasks { # by default. This step ensures that only the base, epel, and updates # repositories are enabled. if [[ -x /usr/bin/yum-config-manager ]] && [[ -e /etc/centos-release ]]; then - sudo yum-config-manager --disable \* - sudo yum-config-manager --enable base - sudo yum-config-manager --enable epel - sudo yum-config-manager --enable updates + sudo yum-config-manager --disable \* > /dev/null + sudo yum-config-manager --enable base > /dev/null + sudo yum-config-manager --enable epel > /dev/null + sudo yum-config-manager --enable updates > /dev/null fi # Ensure that the Ansible environment is properly prepared