summaryrefslogtreecommitdiffstats
path: root/roles/openshift_facts
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-11-13 15:35:51 -0500
committerGitHub <noreply@github.com>2017-11-13 15:35:51 -0500
commitfeb0e25b3ba3deb2c97d707e6000efa9743eb9c0 (patch)
tree8ee7b493cb86c721f1b97ff927742bed0dd75531 /roles/openshift_facts
parent7175c6f228f61b883d958c12ba5130f37a0615c4 (diff)
parent284e4158b2f521e6f91eab243bfae01fc09a07a5 (diff)
downloadopenshift-feb0e25b3ba3deb2c97d707e6000efa9743eb9c0.tar.gz
openshift-feb0e25b3ba3deb2c97d707e6000efa9743eb9c0.tar.bz2
openshift-feb0e25b3ba3deb2c97d707e6000efa9743eb9c0.tar.xz
openshift-feb0e25b3ba3deb2c97d707e6000efa9743eb9c0.zip
Merge pull request #6100 from sdodson/v3_8-support
First pass at v3.8 support
Diffstat (limited to 'roles/openshift_facts')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index a88945538..699dc300f 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -829,6 +829,7 @@ def set_version_facts_if_unset(facts):
version_gte_3_5_or_1_5 = version >= LooseVersion('1.5')
version_gte_3_6 = version >= LooseVersion('3.6')
version_gte_3_7 = version >= LooseVersion('3.7')
+ version_gte_3_8 = version >= LooseVersion('3.8')
else:
version_gte_3_1_or_1_1 = version >= LooseVersion('3.0.2.905')
version_gte_3_1_1_or_1_1_1 = version >= LooseVersion('3.1.1')
@@ -838,6 +839,7 @@ def set_version_facts_if_unset(facts):
version_gte_3_5_or_1_5 = version >= LooseVersion('3.5')
version_gte_3_6 = version >= LooseVersion('3.6')
version_gte_3_7 = version >= LooseVersion('3.7')
+ version_gte_3_8 = version >= LooseVersion('3.8')
else:
# 'Latest' version is set to True, 'Next' versions set to False
version_gte_3_1_or_1_1 = True
@@ -847,7 +849,8 @@ def set_version_facts_if_unset(facts):
version_gte_3_4_or_1_4 = True
version_gte_3_5_or_1_5 = True
version_gte_3_6 = True
- version_gte_3_7 = False
+ version_gte_3_7 = True
+ version_gte_3_8 = False
facts['common']['version_gte_3_1_or_1_1'] = version_gte_3_1_or_1_1
facts['common']['version_gte_3_1_1_or_1_1_1'] = version_gte_3_1_1_or_1_1_1
facts['common']['version_gte_3_2_or_1_2'] = version_gte_3_2_or_1_2
@@ -856,8 +859,11 @@ def set_version_facts_if_unset(facts):
facts['common']['version_gte_3_5_or_1_5'] = version_gte_3_5_or_1_5
facts['common']['version_gte_3_6'] = version_gte_3_6
facts['common']['version_gte_3_7'] = version_gte_3_7
+ facts['common']['version_gte_3_8'] = version_gte_3_8
- if version_gte_3_7:
+ if version_gte_3_8:
+ examples_content_version = 'v3.8'
+ elif version_gte_3_7:
examples_content_version = 'v3.7'
elif version_gte_3_6:
examples_content_version = 'v3.6'