diff options
author | Russell Teague <rteague@redhat.com> | 2017-09-27 10:18:23 -0400 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-09-27 10:45:53 -0400 |
commit | 4dcc5042e6a5ab70de755e2d9d3bdab7e37d45f5 (patch) | |
tree | 4605416910ddd1874b446e95e8665a76863c687e /roles/lib_openshift/src/test/integration/filter_plugins/filters.py | |
parent | 54c41923ed30ba7e46dd12d15157195feca093a6 (diff) | |
download | openshift-4dcc5042e6a5ab70de755e2d9d3bdab7e37d45f5.tar.gz openshift-4dcc5042e6a5ab70de755e2d9d3bdab7e37d45f5.tar.bz2 openshift-4dcc5042e6a5ab70de755e2d9d3bdab7e37d45f5.tar.xz openshift-4dcc5042e6a5ab70de755e2d9d3bdab7e37d45f5.zip |
Rename filter_plugins to unique names
Filter plugin modules should have unique names to not conflict with core
Ansible modules. (Ansible 2.4)
Diffstat (limited to 'roles/lib_openshift/src/test/integration/filter_plugins/filters.py')
-rw-r--r-- | roles/lib_openshift/src/test/integration/filter_plugins/filters.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/roles/lib_openshift/src/test/integration/filter_plugins/filters.py b/roles/lib_openshift/src/test/integration/filter_plugins/filters.py deleted file mode 100644 index f350bd25d..000000000 --- a/roles/lib_openshift/src/test/integration/filter_plugins/filters.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -''' -Custom filters for use in testing -''' - - -class FilterModule(object): - ''' Custom filters for use in integration testing ''' - - @staticmethod - def label_dict_to_key_value_list(label_dict): - ''' Given a dict of labels/values, return list of key: <key> value: <value> pairs - - These are only used in integration testing. - ''' - - label_list = [] - for key in label_dict: - label_list.append({'key': key, 'value': label_dict[key]}) - - return label_list - - def filters(self): - ''' returns a mapping of filters to methods ''' - return { - "label_dict_to_key_value_list": self.label_dict_to_key_value_list, - } |