blob: a10c7aaf044dbd4048670c1f50ce871767021144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.utils.display import Display
display = Display()
def nochange(a):
return a
def meaningoflife(a):
return 42
class FilterModule(object):
''' Ansible core jinja2 filters '''
def filters(self):
return {
'noop': nochange,
'ultimatequestion': meaningoflife,
'b64decode': nochange, # here to colide with basename of builtin
}
|