summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-11-30 09:36:36 -0500
committerBrenton Leanhardt <bleanhar@redhat.com>2015-11-30 09:36:36 -0500
commitc25735c88df27867cda0b45622106cb1119b2a7d (patch)
tree4c313c015950fbd635ad2f106bea622c64d2a901 /playbooks/common
parent54e1c19f25a492a66cfe79dc58d20cbf3487e626 (diff)
parent342cd8dd931d7006ad27f022735f6785b6c214c7 (diff)
downloadopenshift-c25735c88df27867cda0b45622106cb1119b2a7d.tar.gz
openshift-c25735c88df27867cda0b45622106cb1119b2a7d.tar.bz2
openshift-c25735c88df27867cda0b45622106cb1119b2a7d.tar.xz
openshift-c25735c88df27867cda0b45622106cb1119b2a7d.zip
Merge pull request #992 from ubreu/hotfix/fixVersionScript
Add -q flag to remove unwantend output (such as mirror and cache information)
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/files/versions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/files/versions.sh b/playbooks/common/openshift-cluster/upgrades/files/versions.sh
index f90719cab..c7c966b60 100644
--- a/playbooks/common/openshift-cluster/upgrades/files/versions.sh
+++ b/playbooks/common/openshift-cluster/upgrades/files/versions.sh
@@ -2,9 +2,9 @@
yum_installed=$(yum list installed "$@" 2>&1 | tail -n +2 | grep -v 'Installed Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
-yum_available=$(yum list available "$@" 2>&1 | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
+yum_available=$(yum list available -q "$@" 2>&1 | tail -n +2 | grep -v 'Available Packages' | grep -v 'Red Hat Subscription Management' | grep -v 'el7ose' | grep -v 'Error:' | awk '{ print $2 }' | tr '\n' ' ')
echo "---"
-echo "curr_version: ${yum_installed}"
+echo "curr_version: ${yum_installed}"
echo "avail_version: ${yum_available}"