summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-12-16 18:10:15 -0500
committerThomas Wiest <twiest@users.noreply.github.com>2015-12-16 18:10:15 -0500
commit2200cf224c9e5e32ccc537b90bf140beb1cf76df (patch)
treeeadc5a789132679f1bef6d2a67b9c57c2ab22118
parentf826925c8217d5c9f150ef03ca8deb718c37c157 (diff)
parentc487383314ac400e5ddbae5bcfd586748df6608d (diff)
downloadopenshift-2200cf224c9e5e32ccc537b90bf140beb1cf76df.tar.gz
openshift-2200cf224c9e5e32ccc537b90bf140beb1cf76df.tar.bz2
openshift-2200cf224c9e5e32ccc537b90bf140beb1cf76df.tar.xz
openshift-2200cf224c9e5e32ccc537b90bf140beb1cf76df.zip
Merge pull request #1076 from sdodson/versions
Clean up versions.sh
-rw-r--r--playbooks/common/openshift-cluster/upgrades/files/versions.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/files/versions.sh b/playbooks/common/openshift-cluster/upgrades/files/versions.sh
index c7c966b60..b46407ed7 100644
--- a/playbooks/common/openshift-cluster/upgrades/files/versions.sh
+++ b/playbooks/common/openshift-cluster/upgrades/files/versions.sh
@@ -1,9 +1,8 @@
#!/bin/bash
-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 -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' ' ')
+yum_installed=$(yum list installed -e 0 -q "$@" 2>&1 | tail -n +2 | awk '{ print $2 }' | tr '\n' ' ')
+yum_available=$(yum list available -e 0 -q "$@" 2>&1 | tail -n +2 | grep -v 'el7ose' | awk '{ print $2 }' | tr '\n' ' ')
echo "---"
echo "curr_version: ${yum_installed}"