diff options
author | Michael Gugino <mgugino@redhat.com> | 2018-01-04 23:55:34 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2018-01-10 11:34:36 -0500 |
commit | d3fefc32a727fe3c13159c4e9fe4399f35b487a8 (patch) | |
tree | 3211ffc7fa4c8df9ff93928e705ef5314d339f3c /roles/openshift_storage_glusterfs/filter_plugins | |
parent | ee2d4b8e66a344e8f6ca12cbc9362a80a07555d0 (diff) | |
download | openshift-d3fefc32a727fe3c13159c4e9fe4399f35b487a8.tar.gz openshift-d3fefc32a727fe3c13159c4e9fe4399f35b487a8.tar.bz2 openshift-d3fefc32a727fe3c13159c4e9fe4399f35b487a8.tar.xz openshift-d3fefc32a727fe3c13159c4e9fe4399f35b487a8.zip |
Move more plugins to lib_utils
This commit continues moving plugins into lib_utils.
This commit does not move any plugins for add-on roles
such as logging and metrics.
Diffstat (limited to 'roles/openshift_storage_glusterfs/filter_plugins')
-rw-r--r-- | roles/openshift_storage_glusterfs/filter_plugins/openshift_storage_glusterfs.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/roles/openshift_storage_glusterfs/filter_plugins/openshift_storage_glusterfs.py b/roles/openshift_storage_glusterfs/filter_plugins/openshift_storage_glusterfs.py deleted file mode 100644 index a86c96df7..000000000 --- a/roles/openshift_storage_glusterfs/filter_plugins/openshift_storage_glusterfs.py +++ /dev/null @@ -1,23 +0,0 @@ -''' - Openshift Storage GlusterFS class that provides useful filters used in GlusterFS -''' - - -def map_from_pairs(source, delim="="): - ''' Returns a dict given the source and delim delimited ''' - if source == '': - return dict() - - return dict(item.split(delim) for item in source.split(",")) - - -# pylint: disable=too-few-public-methods -class FilterModule(object): - ''' OpenShift Storage GlusterFS Filters ''' - - # pylint: disable=no-self-use, too-few-public-methods - def filters(self): - ''' Returns the names of the filters provided by this class ''' - return { - 'map_from_pairs': map_from_pairs - } |