summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorUrs Breu <urs.breu@ergon.ch>2015-11-26 09:18:05 +0100
committerUrs Breu <urs.breu@ergon.ch>2015-11-26 09:20:22 +0100
commit342cd8dd931d7006ad27f022735f6785b6c214c7 (patch)
tree63b6bac338dafe05338978509a9c4c37c0205dda /playbooks
parente3071fd15f70214fe9f13b847f2cc5443716d955 (diff)
downloadopenshift-342cd8dd931d7006ad27f022735f6785b6c214c7.tar.gz
openshift-342cd8dd931d7006ad27f022735f6785b6c214c7.tar.bz2
openshift-342cd8dd931d7006ad27f022735f6785b6c214c7.tar.xz
openshift-342cd8dd931d7006ad27f022735f6785b6c214c7.zip
Add -q flag to remove unwantend output (such as mirror and cache information)
This prevents ansible failures when trying to set version facts
Diffstat (limited to 'playbooks')
-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}"