diff options
author | Urs Breu <urs.breu@ergon.ch> | 2015-11-26 09:18:05 +0100 |
---|---|---|
committer | Urs Breu <urs.breu@ergon.ch> | 2015-11-26 09:20:22 +0100 |
commit | 342cd8dd931d7006ad27f022735f6785b6c214c7 (patch) | |
tree | 63b6bac338dafe05338978509a9c4c37c0205dda /playbooks/common | |
parent | e3071fd15f70214fe9f13b847f2cc5443716d955 (diff) | |
download | openshift-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/common')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/files/versions.sh | 4 |
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}" |