summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-12-05 15:41:14 -0500
committerMichael Gugino <mgugino@redhat.com>2017-12-07 13:36:26 -0500
commitd763135d14cf1975176b829c2f42a9f95ad5a8e4 (patch)
tree7407df3c29a757d0ad77afb3ce47345826491e6e /filter_plugins
parent65cb13e74918d74cb9e8d4854f271a4d35177ad2 (diff)
downloadopenshift-d763135d14cf1975176b829c2f42a9f95ad5a8e4.tar.gz
openshift-d763135d14cf1975176b829c2f42a9f95ad5a8e4.tar.bz2
openshift-d763135d14cf1975176b829c2f42a9f95ad5a8e4.tar.xz
openshift-d763135d14cf1975176b829c2f42a9f95ad5a8e4.zip
Remove unused openshift_env_structures and openshift_env
This component of openshift_facts is no longer used.
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index 45795d097..2cb30123e 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -690,26 +690,6 @@ def to_padded_yaml(data, level=0, indent=2, **kw):
raise errors.AnsibleFilterError('Failed to convert: %s' % my_e)
-def oo_openshift_env(hostvars):
- ''' Return facts which begin with "openshift_" and translate
- legacy facts to their openshift_env counterparts.
-
- Ex: hostvars = {'openshift_fact': 42,
- 'theyre_taking_the_hobbits_to': 'isengard'}
- returns = {'openshift_fact': 42}
- '''
- if not issubclass(type(hostvars), dict):
- raise errors.AnsibleFilterError("|failed expects hostvars is a dict")
-
- facts = {}
- regex = re.compile('^openshift_.*')
- for key in hostvars:
- if regex.match(key):
- facts[key] = hostvars[key]
-
- return facts
-
-
def oo_31_rpm_rename_conversion(rpms, openshift_version=None):
""" Filters a list of 3.0 rpms and return the corresponding 3.1 rpms
names with proper version (if provided)
@@ -996,7 +976,6 @@ class FilterModule(object):
"oo_pretty_print_cluster": oo_pretty_print_cluster,
"oo_generate_secret": oo_generate_secret,
"oo_nodes_with_label": oo_nodes_with_label,
- "oo_openshift_env": oo_openshift_env,
"oo_31_rpm_rename_conversion": oo_31_rpm_rename_conversion,
"oo_pods_match_component": oo_pods_match_component,
"oo_get_hosts_from_hostvars": oo_get_hosts_from_hostvars,