diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-04 16:22:11 -0500 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-11-04 16:22:11 -0500 |
commit | 5feca78a410fe0e5d87bc697cecd542af1c6adeb (patch) | |
tree | 248f5e2b2ae1d5f491747750021cd2e90a29f035 /utils/src/ooinstall/variants.py | |
parent | 896b9c63292a50dce8e7aa00a889dfd52a3a8474 (diff) | |
parent | 75d357c9bba120221a5f996660aa4fdbb87f1fa8 (diff) | |
download | openshift-5feca78a410fe0e5d87bc697cecd542af1c6adeb.tar.gz openshift-5feca78a410fe0e5d87bc697cecd542af1c6adeb.tar.bz2 openshift-5feca78a410fe0e5d87bc697cecd542af1c6adeb.tar.xz openshift-5feca78a410fe0e5d87bc697cecd542af1c6adeb.zip |
Merge pull request #792 from dgoodwin/upgrade
Upgrade Improvements
Diffstat (limited to 'utils/src/ooinstall/variants.py')
-rw-r--r-- | utils/src/ooinstall/variants.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/src/ooinstall/variants.py b/utils/src/ooinstall/variants.py index 05281d654..3bb61dddb 100644 --- a/utils/src/ooinstall/variants.py +++ b/utils/src/ooinstall/variants.py @@ -29,6 +29,9 @@ class Variant(object): self.versions = versions + def latest_version(self): + return self.versions[-1] + # WARNING: Keep the versions ordered, most recent last: OSE = Variant('openshift-enterprise', 'OpenShift Enterprise', @@ -58,7 +61,7 @@ def find_variant(name, version=None): for prod in SUPPORTED_VARIANTS: if prod.name == name: if version is None: - return (prod, prod.versions[-1]) + return (prod, prod.latest_version()) for v in prod.versions: if v.name == version: return (prod, v) |