diff options
author | Lénaïc Huard <lhuard@amadeus.com> | 2015-06-08 09:32:59 +0200 |
---|---|---|
committer | Lénaïc Huard <lhuard@amadeus.com> | 2015-06-08 09:32:59 +0200 |
commit | 3b660e9b3f3859d69371f12e18922274db7ad026 (patch) | |
tree | 53cc77cc35a071ad49f4c9611946e1fd70e6ce15 /filter_plugins | |
parent | af8b0b25f5e572ab20e3c3efdba596bae7ae7563 (diff) | |
download | openshift-3b660e9b3f3859d69371f12e18922274db7ad026.tar.gz openshift-3b660e9b3f3859d69371f12e18922274db7ad026.tar.bz2 openshift-3b660e9b3f3859d69371f12e18922274db7ad026.tar.xz openshift-3b660e9b3f3859d69371f12e18922274db7ad026.zip |
Replace the custom oo_len filter by the Jinja2 standard one: length
Diffstat (limited to 'filter_plugins')
-rw-r--r-- | filter_plugins/oo_filters.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py index 33d5e6cc3..fd719103d 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. @@ -209,7 +202,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, |