diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-12-08 10:45:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-08 10:45:47 -0500 |
commit | 7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77 (patch) | |
tree | 40badea9dfe299ed6f1e16f0c395cce5946d92da /roles/openshift_master_facts/lookup_plugins | |
parent | 8001a090e8711b3d9d5be3d7cd3864b77b64deab (diff) | |
parent | d38303c7cfc7c6d946922df696f5422bb2a32dc5 (diff) | |
download | openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.tar.gz openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.tar.bz2 openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.tar.xz openshift-7ced91bcef775e3bcdc1cc1b380ad28b2e20ae77.zip |
Merge pull request #2943 from detiber/fixOpenShiftRelease
Properly handle x.y.z formatted versions for openshift_release
Diffstat (limited to 'roles/openshift_master_facts/lookup_plugins')
-rw-r--r-- | roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_predicates.py | 2 | ||||
-rw-r--r-- | roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_priorities.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_predicates.py b/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_predicates.py index 6aa9af74c..4f7461827 100644 --- a/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_predicates.py +++ b/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_predicates.py @@ -32,6 +32,7 @@ class LookupModule(LookupBase): short_version = release[1:] else: short_version = release + short_version = '.'.join(short_version.split('.')[0:2]) elif 'openshift_version' in variables: version = variables['openshift_version'] short_version = '.'.join(version.split('.')[0:2]) @@ -64,7 +65,6 @@ class LookupModule(LookupBase): if short_version in ['1.1', '1.2']: predicates.append({'name': 'MatchNodeSelector'}) - predicates.append({'name': 'Hostname'}) if short_version != '1.1': predicates.append({'name': 'MaxEBSVolumeCount'}) diff --git a/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_priorities.py b/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_priorities.py index 7c0ba4388..7087ff03c 100644 --- a/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_priorities.py +++ b/roles/openshift_master_facts/lookup_plugins/openshift_master_facts_default_priorities.py @@ -36,6 +36,7 @@ class LookupModule(LookupBase): short_version = release[1:] else: short_version = release + short_version = '.'.join(short_version.split('.')[0:2]) elif 'openshift_version' in variables: version = variables['openshift_version'] short_version = '.'.join(version.split('.')[0:2]) |