summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-06-09 09:33:41 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-06-09 09:33:41 -0400
commit142ef2dd35161e4544962daff21e8477988b0618 (patch)
tree54506e2866b92c8e12b3b594e14f1fbf09cff817 /filter_plugins
parent9dc9035bbe6ba7980c93484b1ad7616c1687047a (diff)
parent3b660e9b3f3859d69371f12e18922274db7ad026 (diff)
downloadopenshift-142ef2dd35161e4544962daff21e8477988b0618.tar.gz
openshift-142ef2dd35161e4544962daff21e8477988b0618.tar.bz2
openshift-142ef2dd35161e4544962daff21e8477988b0618.tar.xz
openshift-142ef2dd35161e4544962daff21e8477988b0618.zip
Merge pull request #271 from lhuard1A/oo_len
Replace the custom oo_len filter by the Jinja2 standard one: length
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index f705b2c7f..476761715 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -23,13 +23,6 @@ class FilterModule(object):
return arg
@staticmethod
- def oo_len(arg):
- ''' This returns the length of the argument
- Ex: "{{ hostvars | oo_len }}"
- '''
- return len(arg)
-
- @staticmethod
def get_attr(data, attribute=None):
''' This looks up dictionary attributes of the form a.b.c and returns
the value.
@@ -215,7 +208,6 @@ class FilterModule(object):
"oo_select_keys": self.oo_select_keys,
"oo_collect": self.oo_collect,
"oo_flatten": self.oo_flatten,
- "oo_len": self.oo_len,
"oo_pdb": self.oo_pdb,
"oo_prepend_strings_in_list": self.oo_prepend_strings_in_list,
"oo_ami_selector": self.oo_ami_selector,