summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/variants.py
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-03 09:37:48 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-03 09:37:48 -0400
commitd608d84361a073b2f6c3c0ba08558027cf237890 (patch)
tree05730b875df72c97e0810efb7cf32e38812de8ac /utils/src/ooinstall/variants.py
parent078a44715b1190f4a7e0b098b0dc87446d88ac8c (diff)
parentec31736606fc280de641e8909f03416c6b74e004 (diff)
downloadopenshift-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.py5
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)