diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2015-11-03 09:37:48 -0400 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2015-11-03 09:37:48 -0400 |
commit | d608d84361a073b2f6c3c0ba08558027cf237890 (patch) | |
tree | 05730b875df72c97e0810efb7cf32e38812de8ac /utils/src/ooinstall/variants.py | |
parent | 078a44715b1190f4a7e0b098b0dc87446d88ac8c (diff) | |
parent | ec31736606fc280de641e8909f03416c6b74e004 (diff) | |
download | openshift-d608d84361a073b2f6c3c0ba08558027cf237890.tar.gz openshift-d608d84361a073b2f6c3c0ba08558027cf237890.tar.bz2 openshift-d608d84361a073b2f6c3c0ba08558027cf237890.tar.xz openshift-d608d84361a073b2f6c3c0ba08558027cf237890.zip |
Merge branch 'upgrade' into config-upgrade
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 ed98429fc..219af6cd2 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) |